mardi 1 avril 2014

Rake does not load gems


Vote count:

0




I have a basic rake file that just runs rspec, and I can run my tests fine with:



$ rspec spec/


I need to be able to run:



$ bundle exec rake


For my CI, but whenever I just run rake by itself I get uninitialized constant errors even though the necessary gems are in my gemfile. When I require the gems individually I can make the errors go away



/Users/DayJam/workspace/dayjam/spec/support/message_bus_helper.rb:1:in `<top (required)>': uninitialized constant PusherFake (NameError)
from /Users/DayJam/workspace/dayjam/spec/spec_helper.rb:17:in `block in <top (required)>'
from /Users/DayJam/workspace/dayjam/spec/spec_helper.rb:17:in `each'
from /Users/DayJam/workspace/dayjam/spec/spec_helper.rb:17:in `<top (required)>'
from /Users/DayJam/workspace/dayjam/spec/behaviors/creates_invitation_spec.rb:1:in `require'
from /Users/DayJam/workspace/dayjam/spec/behaviors/creates_invitation_spec.rb:1:in `<top (required)>'
from /Users/DayJam/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.7/lib/rspec/core/configuration.rb:896:in `load'
from /Users/DayJam/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.7/lib/rspec/core/configuration.rb:896:in `block in load_spec_files'
from /Users/DayJam/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.7/lib/rspec/core/configuration.rb:896:in `each'
from /Users/DayJam/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.7/lib/rspec/core/configuration.rb:896:in `load_spec_files'
from /Users/DayJam/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.7/lib/rspec/core/command_line.rb:22:in `run'
from /Users/DayJam/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.7/lib/rspec/core/runner.rb:80:in `run'
from /Users/DayJam/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.7/lib/rspec/core/runner.rb:17:in `block in autorun'


asked 36 secs ago






Aucun commentaire:

Enregistrer un commentaire