Created
March 5, 2016 03:46
-
-
Save vraravam/15c2d465d040bcbab234 to your computer and use it in GitHub Desktop.
Rails generator configuration using rspec and factory_girl
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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