diff options
author | Carl Lerche <carllerche@mac.com> | 2009-10-08 12:14:57 -0700 |
---|---|---|
committer | Carl Lerche <carllerche@mac.com> | 2009-10-08 12:31:09 -0700 |
commit | e4d7e5090c928e5b64350be9a1fb3aaf6f968e4c (patch) | |
tree | 27fe4309341ed992a1f9ca4867f3db6ee46802eb /railties/test/application/initializable_test.rb | |
parent | 6d6ae0841c94d3c0ce0c91311028ff7396c44a4a (diff) | |
download | rails-e4d7e5090c928e5b64350be9a1fb3aaf6f968e4c.tar.gz rails-e4d7e5090c928e5b64350be9a1fb3aaf6f968e4c.tar.bz2 rails-e4d7e5090c928e5b64350be9a1fb3aaf6f968e4c.zip |
Moving more initializers into the application object
Diffstat (limited to 'railties/test/application/initializable_test.rb')
-rw-r--r-- | railties/test/application/initializable_test.rb | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/railties/test/application/initializable_test.rb b/railties/test/application/initializable_test.rb deleted file mode 100644 index 38eaec63c0..0000000000 --- a/railties/test/application/initializable_test.rb +++ /dev/null @@ -1,26 +0,0 @@ -require "isolation/abstract_unit" - -module ApplicationTests - class InitializerTest < Test::Unit::TestCase - include ActiveSupport::Testing::Isolation - - def setup - build_app - boot_rails - end - - test "initializers only ever run once" do - class MyApp < Rails::Application - initializer :counter do - $counter += 1 - end - end - - $counter = 0 - MyApp.initializers[:counter].run - MyApp.initializers[:counter].run - - assert_equal 1, $counter - end - end -end
\ No newline at end of file |