]> source.dussan.org Git - redmine.git/commitdiff
cleanup: rubocop: fix Layout/SpaceInsideBlockBraces in test/unit/project_test.rb
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sun, 24 Nov 2019 16:43:34 +0000 (16:43 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sun, 24 Nov 2019 16:43:34 +0000 (16:43 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@19263 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/unit/project_test.rb

index 8fe0b426b5e6e8cfa9ba8186f6a68bd369cb548e..fec383f9d3ef65e4169506a5f688982274306d3c 100644 (file)
@@ -153,13 +153,13 @@ class ProjectTest < ActiveSupport::TestCase
 
   def test_members_should_be_active_users
     Project.all.each do |project|
-      assert_nil project.members.detect {|m| !(m.user.is_a?(User) && m.user.active?) }
+      assert_nil project.members.detect {|m| !(m.user.is_a?(User) && m.user.active?)}
     end
   end
 
   def test_users_should_be_active_users
     Project.all.each do |project|
-      assert_nil project.users.detect {|u| !(u.is_a?(User) && u.active?) }
+      assert_nil project.users.detect {|u| !(u.is_a?(User) && u.active?)}
     end
   end
 
@@ -235,7 +235,7 @@ class ProjectTest < ActiveSupport::TestCase
 
     @ecookbook.destroy
     # make sure that the project non longer exists
-    assert_raise(ActiveRecord::RecordNotFound) { Project.find(@ecookbook.id) }
+    assert_raise(ActiveRecord::RecordNotFound) {Project.find(@ecookbook.id)}
     # make sure related data was removed
     assert_nil Member.where(:project_id => @ecookbook.id).first
     assert_nil Board.where(:project_id => @ecookbook.id).first