]> source.dussan.org Git - redmine.git/commitdiff
cleanup: rubocop: fix Layout/SpaceInsideHashLiteralBraces in test/functional/projects...
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sun, 24 Nov 2019 16:44:40 +0000 (16:44 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sun, 24 Nov 2019 16:44:40 +0000 (16:44 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@19269 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/functional/projects_controller_test.rb

index 34c25d93042862c94a4ae75fbdb57ef89d302361..00c5214a5889a758b77286b351dde92242715d2a 100644 (file)
@@ -1169,7 +1169,7 @@ class ProjectsControllerTest < Redmine::ControllerTest
 
   def test_bookmark_should_create_bookmark
     @request.session[:user_id] = 3
-    post :bookmark, params: { id: 'ecookbook' }
+    post(:bookmark, :params => {:id => 'ecookbook'})
     assert_redirected_to controller: 'projects', action: 'show', id: 'ecookbook'
     jb = Redmine::ProjectJumpBox.new(User.find(3))
     assert jb.bookmark?(Project.find('ecookbook'))
@@ -1181,7 +1181,7 @@ class ProjectsControllerTest < Redmine::ControllerTest
     jb = Redmine::ProjectJumpBox.new(User.find(3))
     project = Project.find('ecookbook')
     jb.bookmark_project project
-    delete :bookmark, params: { id: 'ecookbook' }
+    delete(:bookmark, :params => {:id => 'ecookbook'})
     assert_redirected_to controller: 'projects', action: 'show', id: 'ecookbook'
 
     jb = Redmine::ProjectJumpBox.new(User.find(3))