Skip to content

Commit 2c0d26a

Browse files
Elle Meredithelle
authored andcommitted
Disable auto generated files when using Rails generators
1 parent 4723e04 commit 2c0d26a

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

config/application.rb

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,5 @@ class Application < Rails::Application
2626
# Application configuration can go into files in config/initializers
2727
# -- all .rb files in that directory are automatically loaded after loading
2828
# the framework and any gems in your application.
29-
30-
# Don't generate system test files.
31-
config.generators.system_tests = nil
3229
end
3330
end

config/initializers/generators.rb

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
Rails.application.config.generators do |generate|
2+
generate.helper false
3+
generate.request_specs false
4+
generate.routing_specs false
5+
generate.stylesheets false
6+
generate.system_tests = nil
7+
generate.test_framework :rspec
8+
generate.view_specs false
9+
end
10+

0 commit comments

Comments
 (0)