@@ -151,6 +151,15 class RepositoryTest < ActiveSupport::TestCase | |||
|
151 | 151 | assert_equal 'foo', repository.root_url |
|
152 | 152 | end |
|
153 | 153 | |
|
154 | def test_for_urls_strip_subversion | |
|
155 | repository = Repository::Subversion.create( | |
|
156 | :project => Project.find(4), | |
|
157 | :url => ' file:///dummy ') | |
|
158 | assert repository.save | |
|
159 | repository.reload | |
|
160 | assert_equal 'file:///dummy', repository.url | |
|
161 | end | |
|
162 | ||
|
154 | 163 | def test_manual_user_mapping |
|
155 | 164 | assert_no_difference "Changeset.count(:conditions => 'user_id <> 2')" do |
|
156 | 165 | c = Changeset.create!( |
General Comments 0
You need to be logged in to leave comments.
Login now