aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/configuration_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/test/cases/configuration_test.rb')
-rw-r--r--activerecord/test/cases/configuration_test.rb26
1 files changed, 0 insertions, 26 deletions
diff --git a/activerecord/test/cases/configuration_test.rb b/activerecord/test/cases/configuration_test.rb
deleted file mode 100644
index 872f1fc33b..0000000000
--- a/activerecord/test/cases/configuration_test.rb
+++ /dev/null
@@ -1,26 +0,0 @@
-require 'cases/helper'
-
-class ConfigurationTest < ActiveRecord::TestCase
- def test_configuration
- @klass = Class.new do
- include ActiveRecord::Configuration
- end
-
- ActiveRecord::Configuration.define :omg
-
- ActiveRecord::Configuration.omg = "omg"
-
- assert_equal "omg", @klass.new.omg
- assert !@klass.new.respond_to?(:omg=)
- assert_equal "omg", @klass.omg
-
- @klass.omg = "wtf"
-
- assert_equal "wtf", @klass.omg
- assert_equal "wtf", @klass.new.omg
- ensure
- ActiveRecord::Configuration.send(:undef_method, :omg)
- ActiveRecord::Configuration::ClassMethods.send(:undef_method, :omg)
- ActiveRecord::Configuration::ClassMethods.send(:undef_method, :omg=)
- end
-end