diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2014-01-11 10:13:53 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2014-01-11 10:13:53 +0000 |
commit | eab8f307f9bad59e127a47f1191671da391de947 (patch) | |
tree | de42c13b9ea0423a111e1e8713210c53380938d8 | |
parent | abd6471270f02f50f1e9ae9240a604437309e47f (diff) | |
download | redmine-eab8f307f9bad59e127a47f1191671da391de947.tar.gz redmine-eab8f307f9bad59e127a47f1191671da391de947.zip |
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
-rw-r--r-- | test/functional/timelog_controller_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/timelog_controller_test.rb b/test/functional/timelog_controller_test.rb index 6ea3a20b8..71586efa3 100644 --- a/test/functional/timelog_controller_test.rb +++ b/test/functional/timelog_controller_test.rb @@ -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 |