aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/generators/api_app_generator_test.rb
diff options
context:
space:
mode:
authorKoichi ITO <koic.ito@gmail.com>2017-08-12 20:31:46 +0900
committerKoichi ITO <koic.ito@gmail.com>2017-08-16 17:55:25 +0900
commit7c260ae20170159f85d8b7ded1209f12653934fc (patch)
tree7a47c50110652ed74e5984e59d50699e20b64f30 /railties/test/generators/api_app_generator_test.rb
parent11fd246d8f6406aa5165ebf45ca8f17c67716f7e (diff)
downloadrails-7c260ae20170159f85d8b7ded1209f12653934fc.tar.gz
rails-7c260ae20170159f85d8b7ded1209f12653934fc.tar.bz2
rails-7c260ae20170159f85d8b7ded1209f12653934fc.zip
Fix RuboCop offenses
And enable `context_dependent` of Style/BracesAroundHashParameters cop.
Diffstat (limited to 'railties/test/generators/api_app_generator_test.rb')
-rw-r--r--railties/test/generators/api_app_generator_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/test/generators/api_app_generator_test.rb b/railties/test/generators/api_app_generator_test.rb
index 035734ca60..d141b1d4b4 100644
--- a/railties/test/generators/api_app_generator_test.rb
+++ b/railties/test/generators/api_app_generator_test.rb
@@ -67,7 +67,7 @@ class ApiAppGeneratorTest < Rails::Generators::TestCase
run_generator
generator = Rails::Generators::AppGenerator.new ["rails"],
- { api: true, update: true }, destination_root: destination_root, shell: @shell
+ { api: true, update: true }, { destination_root: destination_root, shell: @shell }
quietly { generator.send(:update_config_files) }
assert_no_file "config/initializers/cookies_serializer.rb"
@@ -78,7 +78,7 @@ class ApiAppGeneratorTest < Rails::Generators::TestCase
run_generator
generator = Rails::Generators::AppGenerator.new ["rails"],
- { api: true, update: true }, destination_root: destination_root, shell: @shell
+ { api: true, update: true }, { destination_root: destination_root, shell: @shell }
quietly { generator.send(:update_bin_files) }
assert_no_file "bin/yarn"