aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/test/cases')
-rw-r--r--activerecord/test/cases/attribute_methods/read_test.rb1
-rw-r--r--activerecord/test/cases/configuration_test.rb26
2 files changed, 0 insertions, 27 deletions
diff --git a/activerecord/test/cases/attribute_methods/read_test.rb b/activerecord/test/cases/attribute_methods/read_test.rb
index 375c207d20..0df9ffc0c5 100644
--- a/activerecord/test/cases/attribute_methods/read_test.rb
+++ b/activerecord/test/cases/attribute_methods/read_test.rb
@@ -18,7 +18,6 @@ module ActiveRecord
def self.active_record_super; Base; end
def self.base_class; self; end
- include ActiveRecord::Configuration
include ActiveRecord::AttributeMethods
def self.column_names
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