Skip to content

Instantly share code, notes, and snippets.

@pgericson
pgericson / gist:405092
Created May 18, 2010 14:55
if undefined method Factory error for hydra
If you get the message below use this page: http://wiki.github.com/ngauthier/hydra/why-isnt-it-working
e.g. RAILS_ENV=test rake hydra
Hydra does not include the environment.
undefined method `Factory' for #<ActiveSupport::TestCase::Subclass_15::Subclass_1::Subclass_4::Subclass_1:0x76277b0>
/home/foobar/.bundle/ruby/1.8/gems/actionpack-2.3.4/lib/action_controller/test_process.rb:511:in `method_missing'
/home/foobar/.bundle/ruby/1.8/gems/hydra-0.17.0/lib/hydra/runner.rb:131:in `run_rspec_file'
/home/foobar/.bundle/ruby/1.8/gems/hydra-0.17.0/lib/hydra/runner.rb:39:in `run_file'
/home/foobar/.bundle/ruby/1.8/gems/hydra-0.17.0/lib/hydra/message/worker_messages.rb:19:in `handle'
/home/foobar/.bundle/ruby/1.8/gems/hydra-0.17.0/lib/hydra/runner.rb:69:in `process_messages'