diff options
author | Jon Leighton <j@jonathanleighton.com> | 2012-07-13 18:43:55 +0100 |
---|---|---|
committer | Jon Leighton <j@jonathanleighton.com> | 2012-07-13 18:55:46 +0100 |
commit | 09d2f168e603baa979f209be79d2dff7053d052d (patch) | |
tree | f78000b90bce20f35e78199891f681f8a9e11285 /activerecord/test/cases | |
parent | c733b8e985d342435d6978ee3b806daa84ec64d6 (diff) | |
download | rails-09d2f168e603baa979f209be79d2dff7053d052d.tar.gz rails-09d2f168e603baa979f209be79d2dff7053d052d.tar.bz2 rails-09d2f168e603baa979f209be79d2dff7053d052d.zip |
stop using class_attribute where methods/inheritance will suffice.
Diffstat (limited to 'activerecord/test/cases')
-rw-r--r-- | activerecord/test/cases/autosave_association_test.rb | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/activerecord/test/cases/autosave_association_test.rb b/activerecord/test/cases/autosave_association_test.rb index 8ef3bfef15..b980dc58e3 100644 --- a/activerecord/test/cases/autosave_association_test.rb +++ b/activerecord/test/cases/autosave_association_test.rb @@ -20,22 +20,6 @@ require 'models/company' require 'models/eye' class TestAutosaveAssociationsInGeneral < ActiveRecord::TestCase - def test_autosave_should_be_a_valid_option_for_has_one - assert ActiveRecord::Associations::Builder::HasOne.valid_options.include?(:autosave) - end - - def test_autosave_should_be_a_valid_option_for_belongs_to - assert ActiveRecord::Associations::Builder::BelongsTo.valid_options.include?(:autosave) - end - - def test_autosave_should_be_a_valid_option_for_has_many - assert ActiveRecord::Associations::Builder::HasMany.valid_options.include?(:autosave) - end - - def test_autosave_should_be_a_valid_option_for_has_and_belongs_to_many - assert ActiveRecord::Associations::Builder::HasAndBelongsToMany.valid_options.include?(:autosave) - end - def test_should_not_add_the_same_callbacks_multiple_times_for_has_one assert_no_difference_when_adding_callbacks_twice_for Pirate, :ship end |