summaryrefslogtreecommitdiffstats
path: root/test/unit/repository_test.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2012-02-24 04:09:06 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2012-02-24 04:09:06 +0000
commit873e57dc86610e35f349f1f988f601f5214e90f5 (patch)
tree5c4f1daca3e65a5daedb3dee5442e78968452f34 /test/unit/repository_test.rb
parentc0cdde65065e8dc23c4967e4962d2e35b97f2e6e (diff)
downloadredmine-873e57dc86610e35f349f1f988f601f5214e90f5.tar.gz
redmine-873e57dc86610e35f349f1f988f601f5214e90f5.zip
code layout cleanup test/unit/repository_test.rb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8958 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/repository_test.rb')
-rw-r--r--test/unit/repository_test.rb12
1 files changed, 10 insertions, 2 deletions
diff --git a/test/unit/repository_test.rb b/test/unit/repository_test.rb
index 04f788117..18a369a0f 100644
--- a/test/unit/repository_test.rb
+++ b/test/unit/repository_test.rb
@@ -77,11 +77,19 @@ class RepositoryTest < ActiveSupport::TestCase
end
def test_first_repository_should_be_set_as_default
- repository1 = Repository::Subversion.new(:project => Project.find(3), :identifier => 'svn1', :url => 'file:///svn1')
+ repository1 = Repository::Subversion.new(
+ :project => Project.find(3),
+ :identifier => 'svn1',
+ :url => 'file:///svn1'
+ )
assert repository1.save
assert repository1.is_default?
- repository2 = Repository::Subversion.new(:project => Project.find(3), :identifier => 'svn2', :url => 'file:///svn2')
+ repository2 = Repository::Subversion.new(
+ :project => Project.find(3),
+ :identifier => 'svn2',
+ :url => 'file:///svn2'
+ )
assert repository2.save
assert !repository2.is_default?