Browse Source

Rails4: replace deprecated Relation#first with finder options at TimelogControllerTest

git-svn-id: http://svn.redmine.org/redmine/trunk@12642 e93f8b46-1217-0410-a6f0-8f06a7374b81
tags/2.5.0
Toshi MARUYAMA 10 years ago
parent
commit
eab8f307f9
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      test/functional/timelog_controller_test.rb

+ 1
- 1
test/functional/timelog_controller_test.rb View File

@@ -224,7 +224,7 @@ class TimelogControllerTest < ActionController::TestCase
end

assert_redirected_to '/projects/ecookbook/time_entries'
time_entry = TimeEntry.first(:order => 'id DESC')
time_entry = TimeEntry.order('id DESC').first
assert_equal 1, time_entry.project_id
end


Loading…
Cancel
Save