@@ -77,11 +77,19 class RepositoryTest < ActiveSupport::TestCase | |||
|
77 | 77 | end |
|
78 | 78 | |
|
79 | 79 | def test_first_repository_should_be_set_as_default |
|
80 | repository1 = Repository::Subversion.new(:project => Project.find(3), :identifier => 'svn1', :url => 'file:///svn1') | |
|
80 | repository1 = Repository::Subversion.new( | |
|
81 | :project => Project.find(3), | |
|
82 | :identifier => 'svn1', | |
|
83 | :url => 'file:///svn1' | |
|
84 | ) | |
|
81 | 85 | assert repository1.save |
|
82 | 86 | assert repository1.is_default? |
|
83 | 87 | |
|
84 | repository2 = Repository::Subversion.new(:project => Project.find(3), :identifier => 'svn2', :url => 'file:///svn2') | |
|
88 | repository2 = Repository::Subversion.new( | |
|
89 | :project => Project.find(3), | |
|
90 | :identifier => 'svn2', | |
|
91 | :url => 'file:///svn2' | |
|
92 | ) | |
|
85 | 93 | assert repository2.save |
|
86 | 94 | assert !repository2.is_default? |
|
87 | 95 |
General Comments 0
You need to be logged in to leave comments.
Login now