1
0
Fork 0
mirror of https://github.com/thoughtbot/factory_bot_rails.git synced 2022-11-09 11:49:18 -05:00
thoughtbot--factory_bot_rails/lib
Alex Golubenko 7780065bd2
Fix for factory class naming (#366)
Changing the process of name selection for factory defining

Example:

rails g model UserMedia filename:string --force-plural
...
invoke      factory_bot
create        spec/factories/user_media.rb

it generates the correct factory naming:

FactoryBot.define do
  factory :user_media do
    filename { "MyString" }
  end
end

Fixes: #356
2020-04-03 21:50:47 -04:00
..
factory_bot_rails Ensure factory_bot only loads after initialization 2019-10-02 18:37:42 -04:00
generators Fix for factory class naming (#366) 2020-04-03 21:50:47 -04:00
factory_bot_rails.rb Address todos generated by rubocop for files starting with lib/factory_bot_rails (#296) 2018-09-28 14:08:56 -04:00