How can I run multiple specific spec files when one has a specific line number?
I have used:
rspec spec/models/billing/waiver_plan_class_spec.rb spec/models/billing/risk_tier_spec.rb spec/models/locations/parking_price_spec.rb
which works fine -
...........................
Finished in 12.57 seconds
27 examples, 0 failures
However when I add a line number, e.g.
rspec spec/models/billing/waiver_plan_class_spec.rb spec/models/billing/risk_tier_spec.rb spec/models/locations/parking_price_spec.rb:111
I just get:
Run options: include {:locations=>{"./spec/models/locations/parking_price_spec.rb"=>[111]}}
.
Finished in 2.98 seconds
1 example, 0 failures
Why does adding a line number to the third file seem to stop the other ones from running?
I have tried placing the file with the line number specific test in different positions on the line but it made no difference. Wherever it is placed it is chosen as the only test example to run.
Upgrade to a newer version of rspec, for example version 2.14.8+