thoughtbot/factory_girl — Issue #286: Factory definitions with WikiWord class names not allowed
Author: ringe
Created: 2012-01-28 13:52:45+00:00
State: open

Using Cucumber for testing, the human_name found after factory.compile on line 98 in step_definitions.rb does not support WikiWord class names.

Given the following factory definition:
```
Factory.define :work_word do |w|
w.name "All Biditems"
w.number "1"
end
```

The human_name from the factory.compile comes with the underscore removed, so the step at line 100 in step_definitions fails.

The output I then get is this:
```
Given /^the following wiki_word exists:$/ do |table|
# table is a Cucumber::Ast::Table
pending # express the regexp above with the code you wish you had
end
```

I'm afraid I can't immediately figure out what is going on in the compile method, to create a patch for this.