diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-08-30 16:00:27 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-08-30 16:00:27 +0000 |
commit | 9f7cb2d0458b5c320be8486efa3a1c6de743077d (patch) | |
tree | ea670882c4e3fcd6fd5513f9f685c155875772ba /test/unit/repository_test.rb | |
parent | 5bb790eed476ceabf67561a1025c69e5e9b78bd2 (diff) | |
download | redmine-9f7cb2d0458b5c320be8486efa3a1c6de743077d.tar.gz redmine-9f7cb2d0458b5c320be8486efa3a1c6de743077d.zip |
scm: add test to strip subversion repository path at unit repository test.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6826 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/repository_test.rb')
-rw-r--r-- | test/unit/repository_test.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/unit/repository_test.rb b/test/unit/repository_test.rb index 5f631f04c..0e21a0cba 100644 --- a/test/unit/repository_test.rb +++ b/test/unit/repository_test.rb @@ -151,6 +151,15 @@ class RepositoryTest < ActiveSupport::TestCase assert_equal 'foo', repository.root_url end + def test_for_urls_strip_subversion + repository = Repository::Subversion.create( + :project => Project.find(4), + :url => ' file:///dummy ') + assert repository.save + repository.reload + assert_equal 'file:///dummy', repository.url + end + def test_manual_user_mapping assert_no_difference "Changeset.count(:conditions => 'user_id <> 2')" do c = Changeset.create!( |