diff options
author | Akira Matsuda <ronnie@dio.jp> | 2014-08-28 19:27:22 +0900 |
---|---|---|
committer | Akira Matsuda <ronnie@dio.jp> | 2014-08-28 19:27:22 +0900 |
commit | bd7b4f76589ad9ab016aea3442f7ceef6251cced (patch) | |
tree | 5ff578613fd3e018bc203f1f51699b50f45397c3 /activerecord | |
parent | b23365fe5cedd4b88a2576423540ec94929b527e (diff) | |
download | rails-bd7b4f76589ad9ab016aea3442f7ceef6251cced.tar.gz rails-bd7b4f76589ad9ab016aea3442f7ceef6251cced.tar.bz2 rails-bd7b4f76589ad9ab016aea3442f7ceef6251cced.zip |
User Model#last to certainly get lastly created data
This test would fail when executed after any test that calls fixtures(:binaries)
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/test/cases/dirty_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/dirty_test.rb b/activerecord/test/cases/dirty_test.rb index 5cb6b97117..eb9b1a2d74 100644 --- a/activerecord/test/cases/dirty_test.rb +++ b/activerecord/test/cases/dirty_test.rb @@ -689,7 +689,7 @@ class DirtyTest < ActiveRecord::TestCase end klass.create!(data: "foo") - binary = klass.first + binary = klass.last assert_not binary.changed? |