Permalink
Browse files

Remove unneded tests.

Before b081f6b, this test are
asserting that update_attribute does the dirty tracking. Since we
deprecated this method and update_column write in the database directly
this tests will always fail.
  • Loading branch information...
1 parent 2109fd5 commit a8e22aeadcf53a30893fbfbf6d446d504bd87b67 @rafaelfranca rafaelfranca committed Jun 14, 2012
Showing with 1 addition and 11 deletions.
  1. +1 −11 activerecord/test/cases/dirty_test.rb
@@ -78,7 +78,7 @@ def test_time_attributes_changes_with_time_zone
assert_equal old_created_on, pirate.created_on_was
end
end
-
+
def test_setting_time_attributes_with_time_zone_field_to_itself_should_not_be_marked_as_a_change
in_time_zone 'Paris' do
target = Class.new(ActiveRecord::Base)
@@ -496,16 +496,6 @@ def test_previous_changes
assert_not_nil pirate.previous_changes['updated_on'][1]
assert !pirate.previous_changes.key?('parrot_id')
assert !pirate.previous_changes.key?('created_on')
-
- pirate = Pirate.find_by_catchphrase("Ahoy!")
- pirate.update_column(:catchphrase, "Ninjas suck!")
-
- assert_equal 2, pirate.previous_changes.size
- assert_equal ["Ahoy!", "Ninjas suck!"], pirate.previous_changes['catchphrase']
- assert_not_nil pirate.previous_changes['updated_on'][0]
- assert_not_nil pirate.previous_changes['updated_on'][1]
- assert !pirate.previous_changes.key?('parrot_id')
- assert !pirate.previous_changes.key?('created_on')
end
private

0 comments on commit a8e22ae

Please sign in to comment.