ruby on rails - Having trouble running rspec -


so trying learn how write tests, having them @ work soon.

i following guide here: http://everydayrails.com/2012/03/19/testing-series-rspec-models-factory-girl.html

and trying run command, quarter of way down page

rspec spec/models/contact_spec.rb 

so first ran problem on large app @ work, ran issues. decided follow steps smaller app working on. still ran issues. created brand new app, (just did 'rails new' , tinkered gem files). blank rails app, again went through tutorial reading, , again when got command, ran issues.

the error is: (followed 10 lines of gem file errors don't think need listed)

/users/kdweber89/.rvm/gems/ruby-2.1.5/gems/rspec-core-3.2.2/lib/rspec/core/configuration.rb:1226:in `load': cannot load such file -- /users/kdweber89/desktop/railspractice/rspectesting/spec/models/spec/models/contact_spec.rb (loaderror) 

i have no idea doing wrong this, since have followed tutorial best can.

could take quick @ me?

look @ path in error message:

spec/models/spec/models/contact_spec.rb 

notice spec/models repeated? that's because you're running command within spec/models directory, rather project root.


Comments

Popular posts from this blog

Java 3D LWJGL collision -

spring - SubProtocolWebSocketHandler - No handlers -

methods - python can't use function in submodule -