aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test
diff options
context:
space:
mode:
authormasarakki <masaki@hisme.net>2014-10-13 06:22:49 +0900
committermasarakki <masaki@hisme.net>2014-10-13 22:17:50 +0900
commita441293cd9824ea74bba9a98168d5bc88f379e4b (patch)
tree65da466bcf0f180976699417abe331cc8fc8cdcf /railties/test
parent51278579477eb7ee20fe2aba53b4b13203791b22 (diff)
downloadrails-a441293cd9824ea74bba9a98168d5bc88f379e4b.tar.gz
rails-a441293cd9824ea74bba9a98168d5bc88f379e4b.tar.bz2
rails-a441293cd9824ea74bba9a98168d5bc88f379e4b.zip
fix test_helper for mountable plugin
Diffstat (limited to 'railties/test')
-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 ed4e100a9b..4329c6e1a4 100644
--- a/railties/test/generators/plugin_generator_test.rb
+++ b/railties/test/generators/plugin_generator_test.rb
@@ -245,6 +245,10 @@ class PluginGeneratorTest < Rails::Generators::TestCase
assert_match(/stylesheet_link_tag\s+['"]bukkits\/application['"]/, contents)
assert_match(/javascript_include_tag\s+['"]bukkits\/application['"]/, contents)
end
+ assert_file "test/test_helper.rb" do |content|
+ assert_match(/ActiveRecord::Migrator\.migrations_paths.+\.\.\/test\/dummy\/db\/migrate/, content)
+ assert_match(/ActiveRecord::Migrator\.migrations_paths.+<<.+\.\.\/db\/migrate/, content)
+ end
end
def test_creating_gemspec