Skip to content

Commit

Permalink
Rails4: replace deprecated Relation#first with finder options at User…
Browse files Browse the repository at this point in the history
…Test

git-svn-id: http://svn.redmine.org/redmine/trunk@12564 e93f8b46-1217-0410-a6f0-8f06a7374b81
  • Loading branch information
marutosi committed Jan 9, 2014
1 parent 3ca03be commit d305d15
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/unit/user_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ def test_destroy_should_update_journal_details_old_value
assert_difference 'JournalDetail.count' do
issue.save!
end
journal_detail = JournalDetail.first(:order => 'id DESC')
journal_detail = JournalDetail.order('id DESC').first
assert_equal '2', journal_detail.old_value

User.find(2).destroy
Expand All @@ -273,7 +273,7 @@ def test_destroy_should_update_journal_details_value
assert_difference 'JournalDetail.count' do
issue.save!
end
journal_detail = JournalDetail.first(:order => 'id DESC')
journal_detail = JournalDetail.order('id DESC').first
assert_equal '2', journal_detail.value

User.find(2).destroy
Expand Down

0 comments on commit d305d15

Please sign in to comment.