Skip to content

Commit

Permalink
Fix deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
lest committed Mar 15, 2015
1 parent 8edef94 commit b79de61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/activerecord_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ class UniqStatusUser < User

it "uses persisted value for validation if it hasn't been set" do
user = User.create! :sex => :male
User.find(user).read_attribute_for_validation(:sex).must_equal 'male'
User.find(user.id).read_attribute_for_validation(:sex).must_equal 'male'
end

it 'is valid with empty string assigned' do
Expand Down

0 comments on commit b79de61

Please sign in to comment.