Skip to content
Browse files

Remove unneded tests.

Before 7f4b0a1231bf3c65db2ad4066da78c3da5ffb01, this test are asserting
that update_attribute does the dirty tracking. Since we remove this
method and update_column write in the database directly this tests will
always fail>
  • Loading branch information...
1 parent 508834c commit 46a2917deda5207ff208ac03b85c7ae8396c8501 @rafaelfranca rafaelfranca committed Jun 14, 2012
Showing with 1 addition and 11 deletions.
  1. +1 −11 activerecord/test/cases/dirty_test.rb
View
12 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
if ActiveRecord::Base.connection.supports_migrations?

0 comments on commit 46a2917

Please sign in to comment.
Something went wrong with that request. Please try again.