sunaku/tork — Issue #21: Undefined local variable config in rails.rb
Author: jc00ke
Created: 2012-01-24 17:27:31+00:00
State: open

```

# I required thread in client.rb (#20) then received the following:

∴ tork rails
tork: Absorbing test execution overhead...
/home/jesse/.rvm/gems/ree-1.8.7-2011.12@fooproj/gems/tork-15.0.0/lib/tork/config/rails.rb:33: undefined local variable or method `config' for # (NameError)
from /home/jesse/.rvm/gems/ree-1.8.7-2011.12@fooproj/gems/tork-15.0.0/lib/tork/config/rails.rb:32:in `initialize'
from /home/jesse/.rvm/gems/ree-1.8.7-2011.12@fooproj/gems/tork-15.0.0/lib/tork/config/rails.rb:32:in `new'
from /home/jesse/.rvm/gems/ree-1.8.7-2011.12@fooproj/gems/tork-15.0.0/lib/tork/config/rails.rb:32
from /home/jesse/.rvm/rubies/ree-1.8.7-2011.12/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
from /home/jesse/.rvm/rubies/ree-1.8.7-2011.12/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
from /home/jesse/.rvm/gems/ree-1.8.7-2011.12@fooproj/gems/tork-15.0.0/lib/tork/config.rb:77
from /home/jesse/.rvm/gems/ree-1.8.7-2011.12@fooproj/gems/tork-15.0.0/lib/tork/config.rb:73:in `each'
from /home/jesse/.rvm/gems/ree-1.8.7-2011.12@fooproj/gems/tork-15.0.0/lib/tork/config.rb:73
from /home/jesse/.rvm/rubies/ree-1.8.7-2011.12/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
from /home/jesse/.rvm/rubies/ree-1.8.7-2011.12/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
from /home/jesse/.rvm/gems/ree-1.8.7-2011.12@fooproj/gems/tork-15.0.0/lib/tork/driver.rb:5
from /home/jesse/.rvm/rubies/ree-1.8.7-2011.12/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
from /home/jesse/.rvm/rubies/ree-1.8.7-2011.12/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
from /home/jesse/.rvm/gems/ree-1.8.7-2011.12@fooproj/gems/tork-15.0.0/bin/tork-driver:83
from /home/jesse/.rvm/gems/ree-1.8.7-2011.12@fooproj/bin/tork-driver:19:in `load'
from /home/jesse/.rvm/gems/ree-1.8.7-2011.12@fooproj/bin/tork-driver:19
```

This is a rails 3.0.6 app w/RSpec 2.8 & FactoryGirl 1.6.0