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:
parent
c0cdde6506
commit
873e57dc86
|
@ -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?
|
||||
|
||||
|
|
Loading…
Reference in New Issue