@@ -160,6 +160,15 class RepositoryTest < ActiveSupport::TestCase | |||||
160 | assert_equal 'file:///dummy', repository.url |
|
160 | assert_equal 'file:///dummy', repository.url | |
161 | end |
|
161 | end | |
162 |
|
162 | |||
|
163 | def test_for_urls_strip_git | |||
|
164 | repository = Repository::Git.create( | |||
|
165 | :project => Project.find(4), | |||
|
166 | :url => ' c:\dummy ') | |||
|
167 | assert repository.save | |||
|
168 | repository.reload | |||
|
169 | assert_equal 'c:\dummy', repository.url | |||
|
170 | end | |||
|
171 | ||||
163 | def test_manual_user_mapping |
|
172 | def test_manual_user_mapping | |
164 | assert_no_difference "Changeset.count(:conditions => 'user_id <> 2')" do |
|
173 | assert_no_difference "Changeset.count(:conditions => 'user_id <> 2')" do | |
165 | c = Changeset.create!( |
|
174 | c = Changeset.create!( |
General Comments 0
You need to be logged in to leave comments.
Login now