Skip to content

Instantly share code, notes, and snippets.

@vraravam
Created March 5, 2016 03:46
Show Gist options
  • Save vraravam/15c2d465d040bcbab234 to your computer and use it in GitHub Desktop.
Save vraravam/15c2d465d040bcbab234 to your computer and use it in GitHub Desktop.
Rails generator configuration using rspec and factory_girl
# config/application.rb
class Application < Rails::Application
config.generators do |g|
g.orm :active_record
g.template_engine :erb
g.stylesheets false
g.javascripts false
g.test_framework :rspec,
fixtures: true,
view_specs: false,
helper_specs: false,
routing_specs: false,
controller_specs: false,
request_specs: false
g.fixture_replacement :factory_girl, dir: 'spec/factories'
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment