Home How do you run a single test/spec file in RSpec?
Reply: 0

How do you run a single test/spec file in RSpec?

user487
1#
user487 Published in May 22, 2018, 12:10 am

I want to be able to run a single spec file's tests — for the one file I'm editing, for example. rake spec executes all the specs. My project is not a Rails project, so rake spec:doc doesn't work.

Don't know if this matters, but here is my directory structure.

./Rakefile
./lib
./lib/cushion.rb
./lib/cushion
./lib/cushion/doc.rb
./lib/cushion/db.rb
./spec
./spec/spec.opts
./spec/spec_helper.rb
./spec/db_spec.rb
You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.412503 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO