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
This commit is contained in:
Toshi MARUYAMA 2012-02-24 04:09:06 +00:00
parent c0cdde6506
commit 873e57dc86
1 changed files with 10 additions and 2 deletions

View File

@ -77,11 +77,19 @@ class RepositoryTest < ActiveSupport::TestCase
end end
def test_first_repository_should_be_set_as_default 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.save
assert repository1.is_default? 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.save
assert !repository2.is_default? assert !repository2.is_default?