summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--test/unit/user_test.rb24
1 files changed, 14 insertions, 10 deletions
diff --git a/test/unit/user_test.rb b/test/unit/user_test.rb
index 661d8936a..4f158904e 100644
--- a/test/unit/user_test.rb
+++ b/test/unit/user_test.rb
@@ -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