1
0
Fork 0
mirror of https://github.com/thoughtbot/factory_bot_rails.git synced 2022-11-09 11:49:18 -05:00

Change FactoryGirl::Generators::Base#explicit_class_option to output 1.9 Hashes

This commit is contained in:
Peter Marsh 2014-10-23 23:48:47 +01:00 committed by Joshua Clayton
parent c789e9db8c
commit 3a050736f3
2 changed files with 2 additions and 2 deletions

View file

@ -24,7 +24,7 @@ Feature:
end
"""
And the file "test/factories/namespaced_users.rb" should contain "factory :namespaced_user, :class => 'Namespaced::User' do"
And the file "test/factories/namespaced_users.rb" should contain "factory :namespaced_user, class: 'Namespaced::User' do"
Scenario: The factory_girl_rails generators does not create a factory file for each model if there is a factories.rb file in the test directory
When I run `bundle install` with a clean environment

View file

@ -8,7 +8,7 @@ module FactoryGirl
end
def explicit_class_option
", :class => '#{class_name}'" unless class_name == singular_table_name.camelize
", class: '#{class_name}'" unless class_name == singular_table_name.camelize
end
end
end