lundi 19 février 2018

Rails, using rspec to run one file

I want to run an rspec test on one file.

I have tried various methods such as

rspec path/to/spec/file.rb
rake spec SPEC=spec/controllers/sessions_controller_spec.rb 
bundle exec rspec path/to/spec/file.rb

But all of them give me this error:

/lib/rack/builder.rb:146:in `to_app': missing run or map statement (RuntimeError)

How do I run an rspec test on one file?

Aucun commentaire:

Enregistrer un commentaire