I created a new Rails 4 application using RSpec. But at startup, rake rspecall examples run twice:
rake spec
[deprecated] I18n.enforce_available_locales will default to true in the future. If you really want to skip validation of your locale you can set I18n.enforce_available_locales = false to avoid this message.
/Users/josh/.rvm/rubies/ruby-2.0.0-p353/bin/ruby -S rspec ./spec/controllers/dashboards_controller_spec.rb ./spec/models/member_spec.rb ./spec/requests/members_spec.rb ./spec/routing/members_routing_spec.rb
[deprecated] I18n.enforce_available_locales will default to true in the future. If you really want to skip validation of your locale you can set I18n.enforce_available_locales = false to avoid this message.
11/11 |============================================ 100 ============================================>| Time: 00:00:00
Finished in 0.21233 seconds
11 examples, 0 failures
Randomized with seed 15954
/Users/josh/.rvm/rubies/ruby-2.0.0-p353/bin/ruby -S rspec ./spec/controllers/dashboards_controller_spec.rb ./spec/models/member_spec.rb ./spec/requests/members_spec.rb ./spec/routing/members_routing_spec.rb
[deprecated] I18n.enforce_available_locales will default to true in the future. If you really want to skip validation of your locale you can set I18n.enforce_available_locales = false to avoid this message.
11/11 |============================================ 100 ============================================>| Time: 00:00:00
Finished in 0.18831 seconds
11 examples, 0 failures
Randomized with seed 24248
I found some other (old) questions about this, but could not find a solution for me. How should I try to debug this? The launch rspecworks like a charm, but I really want to know what the problem is.
Here's mine spec_helper.rb: https://github.com/jmuheim/transition/blob/master/spec/spec_helper.rb
And here is the original Rails project: https://github.com/jmuheim/transition
Refresh
I found that the specrake task seems to be defined twice (note the one /that shares the description of each task):
$ rake -T | grep spec
...
rake spec
...
Run all specs in spec directory (excluding plugin specs), Run RSpec code examples.
Run RSpec code examples , rspec/core/rake_task.rb. Run all specs in spec directory (excluding plugin specs) , rspec/rails/tasks/rspec.rake.
, ?!
2
, , rspec-rails test development . : https://github.com/rspec/rspec-rails/issues/904