Thursday, 15 July 2010

ruby on rails - rspec - bug when I try to run multiple files including one that has a line-number? -



ruby on rails - rspec - bug when I try to run multiple files including one that has a line-number? -

how can run multiple specific spec files when 1 has 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 add together 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 get:

run options: include {:locations=>{"./spec/models/locations/parking_price_spec.rb"=>[111]}} . finished in 2.98 seconds 1 example, 0 failures

why adding line number 3rd file seem stop other ones running?

i have tried placing file line number specific test in different positions on line made no difference. wherever placed chosen test illustration run.

upgrade newer version of rspec, illustration version 2.14.8+

ruby-on-rails ruby rspec

No comments:

Post a Comment