Class: Suspenders::FakerGenerator
Instance Method Summary
collapse
default_source_root
Methods included from Actions
#action_mailer_asset_host, #action_mailer_host, #configure_environment, #expand_json, #replace_in_file
Instance Method Details
#add_factory_bot ⇒ Object
5
6
7
8
|
# File 'lib/suspenders/generators/faker_generator.rb', line 5
def add_factory_bot
gem 'faker', group: %i(development test)
Bundler.with_clean_env { run "bundle install" }
end
|
#set_up_faker ⇒ Object
10
11
12
|
# File 'lib/suspenders/generators/faker_generator.rb', line 10
def set_up_faker
copy_file 'faker_rspec.rb', 'spec/support/faker.rb'
end
|