class Embryo::FactoryGirlGenerator

Public Instance Methods

install() click to toggle source
# File lib/generators/embryo/factory_girl.rb, line 7
def install
  gem "factory_girl_rails", "~> 4.0", group: :test
  create_file "spec/support/factory_girl.rb", factory_girl_helper_data
end

Private Instance Methods

factory_girl_helper_data() click to toggle source
# File lib/generators/embryo/factory_girl.rb, line 14
    def factory_girl_helper_data
'RSpec.configure do |config|
  config.include FactoryGirl::Syntax::Methods
end
'
    end