paulelliott/fabrication — pull request #88 by hoverlover (2012-02-21 16:18:05+00:00)
Title: Fixed module declaration for turnip steps generator.

The `fabrication:turnip_steps` generator was broken for me. When I ran it I got:

```
$> rails g fabrication:turnip_steps
[WARNING] Could not load generator "rails/generators/fabrication/turnip_steps/turnip_steps_generator". Error: uninitialized constant Fabrication.
/Users/cboyd/.rbenv/versions/1.9.3-p0-perf/lib/ruby/gems/1.9.1/gems/fabrication-1.3.1/lib/rails/generators/fabrication/turnip_steps/turnip_steps_generator.rb:3:in `'
/Users/cboyd/.rbenv/versions/1.9.3-p0-perf/lib/ruby/gems/1.9.1/gems/railties-3.2.0/lib/rails/generators.rb:298:in `block (2 levels) in lookup'
/Users/cboyd/.rbenv/versions/1.9.3-p0-perf/lib/ruby/gems/1.9.1/gems/railties-3.2.0/lib/rails/generators.rb:294:in `each'
/Users/cboyd/.rbenv/versions/1.9.3-p0-perf/lib/ruby/gems/1.9.1/gems/railties-3.2.0/lib/rails/generators.rb:294:in `block in lookup'
/Users/cboyd/.rbenv/versions/1.9.3-p0-perf/lib/ruby/gems/1.9.1/gems/railties-3.2.0/lib/rails/generators.rb:293:in `each'
/Users/cboyd/.rbenv/versions/1.9.3-p0-perf/lib/ruby/gems/1.9.1/gems/railties-3.2.0/lib/rails/generators.rb:293:in `lookup'
/Users/cboyd/.rbenv/versions/1.9.3-p0-perf/lib/ruby/gems/1.9.1/gems/railties-3.2.0/lib/rails/generators.rb:151:in `find_by_namespace'
/Users/cboyd/.rbenv/versions/1.9.3-p0-perf/lib/ruby/gems/1.9.1/gems/railties-3.2.0/lib/rails/generators.rb:168:in `invoke'
/Users/cboyd/.rbenv/versions/1.9.3-p0-perf/lib/ruby/gems/1.9.1/gems/railties-3.2.0/lib/rails/commands/generate.rb:12:in `'
/Users/cboyd/.rbenv/versions/1.9.3-p0-perf/lib/ruby/gems/1.9.1/gems/railties-3.2.0/lib/rails/commands.rb:29:in `'
script/rails:6:in `require'
script/rails:6:in `

'
Could not find generator fabrication:turnip_steps.
```

Splitting the module declaration fixed it. I suspect I would have the same problem with the cucumber generator since the module there is defined in the same manner, but I'm not using cuke.