diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2014-01-08 04:32:16 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2014-01-08 04:32:16 +0000 |
commit | 7d4420fe19b2e06b85fd78328d0e522eca4f3f1a (patch) | |
tree | 859881bc415b42970bd8f0c68e960df470f51af3 /test/functional/groups_controller_test.rb | |
parent | 848edf35faea65845d49509c98592cdc3fb8e84f (diff) | |
download | redmine-7d4420fe19b2e06b85fd78328d0e522eca4f3f1a.tar.gz redmine-7d4420fe19b2e06b85fd78328d0e522eca4f3f1a.zip |
Rails4: replace deprecated Relation#first with finder options at GroupsControllerTest
git-svn-id: http://svn.redmine.org/redmine/trunk@12508 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/groups_controller_test.rb')
-rw-r--r-- | test/functional/groups_controller_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/groups_controller_test.rb b/test/functional/groups_controller_test.rb index 67edb9261..0a21b5448 100644 --- a/test/functional/groups_controller_test.rb +++ b/test/functional/groups_controller_test.rb @@ -53,7 +53,7 @@ class GroupsControllerTest < ActionController::TestCase post :create, :group => {:name => 'New group'} end assert_redirected_to '/groups' - group = Group.first(:order => 'id DESC') + group = Group.order('id DESC').first assert_equal 'New group', group.name assert_equal [], group.users end @@ -63,7 +63,7 @@ class GroupsControllerTest < ActionController::TestCase post :create, :group => {:name => 'New group'}, :continue => 'Create and continue' end assert_redirected_to '/groups/new' - group = Group.first(:order => 'id DESC') + group = Group.order('id DESC').first assert_equal 'New group', group.name end |