Permalink
Browse files

Dirty tracking fixed in recent versions of Rails

  • Loading branch information...
bkeepers committed May 1, 2009
1 parent 967c996 commit f27ad4343762d24b8df0e26c47192507d99e1d07
Showing with 0 additions and 2 deletions.
  1. +0 −2 spec/acts_as_audited_spec.rb
@@ -63,7 +63,6 @@
end
it "should not save an audit if the value doesn't change after type casting" do
- pending "Dirty tracking doesn't seem to account for type casting"
@user.update_attributes! :logins => 0, :activated => true
lambda { @user.update_attribute :logins, '0' }.should_not change { Audit.count }
lambda { @user.update_attribute :activated, 1 }.should_not change { Audit.count }
@@ -120,7 +119,6 @@
end
it "should not be changed if the value doesn't change after type casting" do
- pending "Dirty tracking doesn't seem to account for type casting"
@user.update_attributes! :logins => 0, :activated => true
@user.logins = '0'
@user.should_not be_changed

0 comments on commit f27ad43

Please sign in to comment.