mirror of
https://github.com/meineerde/redmine.git
synced 2026-01-04 22:59:47 +00:00
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
This commit is contained in:
parent
7cc5f37eeb
commit
71072f619c
@ -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…
x
Reference in New Issue
Block a user