Is there any way to run a single test in ruby under spec/features/abc_spec.rb 'header details'?

42 Views Asked by At

Is there any way to run a single test in ruby under spec/features/abc_spec.rb 'header details' ? Ex:

rake test:features spec/features/abc_spec.rb 'header details'
1

There are 1 best solutions below

2
Ryan Workman On

Since you're using rspec, there are a few ways to run a single test. First, you can just specify the line of the test bundle exec rspec ./spec/features/abc_spec.rb:xx where xx represents the line number of 'header details'. OR You can create tags which is spelled out here in the Rspec docs.