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/generators
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/model Fix for factory class naming (#366) 2020-04-03 21:50:47 -04:00
factory_bot.rb Fix for factory class naming (#366) 2020-04-03 21:50:47 -04:00