Browse Source

cleanup: rubocop: fix Layout/ClosingParenthesisIndentation in test/unit/user_test.rb

git-svn-id: http://svn.redmine.org/redmine/trunk@19291 e93f8b46-1217-0410-a6f0-8f06a7374b81
tags/4.2.0
Toshi MARUYAMA 4 years ago
parent
commit
71072f619c
1 changed files with 14 additions and 10 deletions
  1. 14
    10
      test/unit/user_test.rb

+ 14
- 10
test/unit/user_test.rb View File

@@ -446,16 +446,20 @@ class UserTest < ActiveSupport::TestCase
end

def test_destroy_should_nullify_changesets
changeset = Changeset.create!(
:repository => Repository::Subversion.create!(
:project_id => 1,
:url => 'file:///tmp',
:identifier => 'tmp'
),
:revision => '12',
:committed_on => Time.now,
:committer => 'jsmith'
)
changeset =
Changeset.
create!(
:repository =>
Repository::Subversion.
create!(
:project_id => 1,
:url => 'file:///tmp',
:identifier => 'tmp'
),
:revision => '12',
:committed_on => Time.now,
:committer => 'jsmith'
)
assert_equal 2, changeset.user_id

User.find(2).destroy

Loading…
Cancel
Save