config.define_implicit_subject feature
Created by: dnurzynski
Hi, In each project I see something like this in all model specs:
describe ExampleModel do
subject { Factory :example_model }
...
end
What do you think about one method in configuration to change default behaviour for implicit subject ?
config.define_implicit_subject :model => true do |described|
Factory described.to_s.underscore
end
I know it's maybe one line for file but it would be more flexible ( especialy switching from FactoryGirl to Mechanist or something like that )
PS: if you like the idea I'll add some coments and cukes for it...