diff options
author | wycats <wycats@gmail.com> | 2010-03-23 16:34:02 -0700 |
---|---|---|
committer | wycats <wycats@gmail.com> | 2010-03-23 16:35:14 -0700 |
commit | 45e8cf59dfd6a66f996db1dc02c122bbc66b97aa (patch) | |
tree | bff931fe391bf1bbbc1280376959bf211efcd245 /railties/test | |
parent | b92963f9f8c8468134d4f726442bb5aae03ecfc6 (diff) | |
download | rails-45e8cf59dfd6a66f996db1dc02c122bbc66b97aa.tar.gz rails-45e8cf59dfd6a66f996db1dc02c122bbc66b97aa.tar.bz2 rails-45e8cf59dfd6a66f996db1dc02c122bbc66b97aa.zip |
init.rb in plugins is here to stay
Diffstat (limited to 'railties/test')
-rw-r--r-- | railties/test/railties/plugin_test.rb | 13 | ||||
-rw-r--r-- | railties/test/railties/shared_tests.rb | 10 |
2 files changed, 0 insertions, 23 deletions
diff --git a/railties/test/railties/plugin_test.rb b/railties/test/railties/plugin_test.rb index 6081890fcb..0f5f29468c 100644 --- a/railties/test/railties/plugin_test.rb +++ b/railties/test/railties/plugin_test.rb @@ -94,19 +94,6 @@ module RailtiesTest assert rescued, "Expected boot rails to fail" end - test "skips init.rb if initializer is present" do - @plugin.write "lib/rails/initializers/foo.rb", <<-RUBY - $loaded = true - RUBY - - @plugin.write "init.rb", <<-RUBY - raise "b00m" - RUBY - - boot_rails - assert $loaded - end - test "loads deprecated rails/init.rb" do @plugin.write "rails/init.rb", <<-RUBY $loaded = true diff --git a/railties/test/railties/shared_tests.rb b/railties/test/railties/shared_tests.rb index 48539c2e99..83d25be5db 100644 --- a/railties/test/railties/shared_tests.rb +++ b/railties/test/railties/shared_tests.rb @@ -297,16 +297,6 @@ YAML assert $plugin_initializer end - def test_rails_plugin_initializers - $plugin_initializer = false - @plugin.write "lib/rails/initializers/foo.rb", <<-RUBY - $plugin_initializer = true - RUBY - - boot_rails - assert $plugin_initializer - end - def test_plugin_midleware_referenced_in_configuration @plugin.write "lib/bukkits.rb", <<-RUBY class Bukkits |