Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

User Model#last to certainly get lastly created data

This test would fail when executed after any test that calls fixtures(:binaries)
  • Loading branch information...
commit bd7b4f76589ad9ab016aea3442f7ceef6251cced 1 parent b23365f
Akira Matsuda amatsuda authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  activerecord/test/cases/dirty_test.rb
2  activerecord/test/cases/dirty_test.rb
View
@@ -689,7 +689,7 @@ def type_cast_for_database(value)
end
klass.create!(data: "foo")
- binary = klass.first
+ binary = klass.last
assert_not binary.changed?
Please sign in to comment.
Something went wrong with that request. Please try again.