From 8ff4ce823a1e55dc98d5789b6a3fc353d4d2ba88 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Sun, 24 Nov 2019 16:43:34 +0000 Subject: [PATCH] cleanup: rubocop: fix Layout/SpaceInsideBlockBraces in test/unit/project_test.rb git-svn-id: http://svn.redmine.org/redmine/trunk@19263 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/unit/project_test.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/unit/project_test.rb b/test/unit/project_test.rb index 8fe0b426b..fec383f9d 100644 --- a/test/unit/project_test.rb +++ b/test/unit/project_test.rb @@ -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 -- 2.39.5