aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/generators
diff options
context:
space:
mode:
authorRafael França <rafaelmfranca@gmail.com>2017-08-08 18:45:36 -0400
committerGitHub <noreply@github.com>2017-08-08 18:45:36 -0400
commitda589fcc4a15cdc923b9df55f9fe964df996e49b (patch)
tree70d34f58c7258c769a0fb35ca17840e9e21875a1 /railties/test/generators
parent9d3e98d83944e5b97716f66953920ebfc23e761d (diff)
parent02499892a20c14073f59ea1929caf8f1bd4a8c21 (diff)
downloadrails-da589fcc4a15cdc923b9df55f9fe964df996e49b.tar.gz
rails-da589fcc4a15cdc923b9df55f9fe964df996e49b.tar.bz2
rails-da589fcc4a15cdc923b9df55f9fe964df996e49b.zip
Merge pull request #30091 from yhirano55/fix_engine_command
Fix engine command
Diffstat (limited to 'railties/test/generators')
-rw-r--r--railties/test/generators/plugin_generator_test.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/railties/test/generators/plugin_generator_test.rb b/railties/test/generators/plugin_generator_test.rb
index 9b33a0ef06..be761e9f65 100644
--- a/railties/test/generators/plugin_generator_test.rb
+++ b/railties/test/generators/plugin_generator_test.rb
@@ -101,6 +101,9 @@ class PluginGeneratorTest < Rails::Generators::TestCase
assert_file "Rakefile" do |contents|
assert_no_match(/APP_RAKEFILE/, contents)
end
+ assert_file "bin/rails" do |contents|
+ assert_no_match(/APP_PATH/, contents)
+ end
end
def test_generating_adds_dummy_app_in_full_mode_without_sprockets
@@ -114,6 +117,7 @@ class PluginGeneratorTest < Rails::Generators::TestCase
def test_generating_adds_dummy_app_rake_tasks_without_unit_test_files
run_generator [destination_root, "-T", "--mountable", "--dummy-path", "my_dummy_app"]
assert_file "Rakefile", /APP_RAKEFILE/
+ assert_file "bin/rails", /APP_PATH/
end
def test_generating_adds_dummy_app_without_javascript_and_assets_deps