From: Toshi MARUYAMA Date: Sun, 24 Nov 2019 16:43:34 +0000 (+0000) Subject: cleanup: rubocop: fix Layout/SpaceInsideBlockBraces in test/unit/project_test.rb X-Git-Tag: 4.2.0~1377 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=8ff4ce823a1e55dc98d5789b6a3fc353d4d2ba88;p=redmine.git 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 --- 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