Rails - Getting RSpec Working -


I'm learning how to integrate tests on my rail app. I started with cucumber, but then learned because I am just testing a model method of which I should use RSPEC. So now I am trying to establish RSPEC.

When I run the Autostast, then it is only looking at the directory / spec directory / features directory.

.autotest

  is required 'autotest / growl' is required 'Autotest / fsevent' Autotest.add_hook (: initialize ) {| At | At.add_exception% r {^. Git} # version control system at.add_exception% r {^. / Tmp} # Temporary temporary files, neither autotest will run again, and then ... # at.clear_mappings # default (trial / trial * rb) at.add_mapping (% r {^ lib /.* \ .rb $ }) {| F, _ | Dir ['spec / ** / * .rb']} nil} / spec-created directory /spec/spec_helper.rb- Created /spec/lib/mailingjob_spec.rb-, tried to write a case that follows Will be unsuccessful: 'Spec_helper' is required before user describe (: each) @valid_attributes = {: login = & gt; "AKM" ,: Email = & gt; "Akm2000@gmail.com" ,: Password = & gt; "D1ff1cultPa55w0rd" ,: password_confirmation = & gt; "D1ff1cultPa55w0rd"} Finally "give a new example to the user", "user.centre"! (@ Legitimate_atiege xxxxx) and end   

But when I run the Autostast, this RPCE never runs the features with the cucumber being run? Thanks

Try:

  rspec --configure autotest   

autotest from README:

[RSpec] If you want to use 'spec_helper' - & gt; RSPEC - Configurable ortest

Comments