diff options
author | Joshua Peek <josh@joshpeek.com> | 2009-07-30 14:05:08 -0500 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2009-07-30 17:54:01 -0500 |
commit | 2c30c9fe6c22f0342aa0be3909efa3a5787dc33d (patch) | |
tree | 87abd967bfb9d029def3533ba6b2a4d82c162b69 /activerecord/test | |
parent | f8d2c77c9056e16d4f98020c94f9316835c4e099 (diff) | |
download | rails-2c30c9fe6c22f0342aa0be3909efa3a5787dc33d.tar.gz rails-2c30c9fe6c22f0342aa0be3909efa3a5787dc33d.tar.bz2 rails-2c30c9fe6c22f0342aa0be3909efa3a5787dc33d.zip |
Undefine id and let it automatically be generated
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/cases/attribute_methods_test.rb | 4 | ||||
-rwxr-xr-x | activerecord/test/cases/base_test.rb | 5 |
2 files changed, 0 insertions, 9 deletions
diff --git a/activerecord/test/cases/attribute_methods_test.rb b/activerecord/test/cases/attribute_methods_test.rb index 183be1e2f9..168b617fbc 100644 --- a/activerecord/test/cases/attribute_methods_test.rb +++ b/activerecord/test/cases/attribute_methods_test.rb @@ -74,10 +74,6 @@ class AttributeMethodsTest < ActiveRecord::TestCase end end - def test_primary_key_implemented - assert Class.new(ActiveRecord::Base).instance_method_already_implemented?('id') - end - def test_defined_kernel_methods_implemented_in_model %w(test name display y).each do |method| klass = Class.new ActiveRecord::Base diff --git a/activerecord/test/cases/base_test.rb b/activerecord/test/cases/base_test.rb index e47f898485..7169d93841 100755 --- a/activerecord/test/cases/base_test.rb +++ b/activerecord/test/cases/base_test.rb @@ -422,11 +422,6 @@ class BasicsTest < ActiveRecord::TestCase end - def test_reader_for_invalid_column_names - Topic.send(:define_read_method, "mumub-jumbo".to_sym, "mumub-jumbo", nil) - assert !Topic.generated_methods.include?("mumub-jumbo") - end - def test_non_attribute_access_and_assignment topic = Topic.new assert !topic.respond_to?("mumbo") |