diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-03-24 13:03:36 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-03-24 13:03:36 +0000 |
commit | bb36fa5d1208dcf24506e7d5c600443c5b83828d (patch) | |
tree | 4d5e823f72ce0affbd81680ed423ffba3a84f01b /test/unit/changeset_test.rb | |
parent | fae5250e52506356965a478518aa7960ada3ec61 (diff) | |
download | redmine-bb36fa5d1208dcf24506e7d5c600443c5b83828d.tar.gz redmine-bb36fa5d1208dcf24506e7d5c600443c5b83828d.zip |
Adds the repository identifier to Changeset#text_tag (#779).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9255 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/changeset_test.rb')
-rw-r--r-- | test/unit/changeset_test.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/unit/changeset_test.rb b/test/unit/changeset_test.rb index a06b1f809..7014eabb7 100644 --- a/test/unit/changeset_test.rb +++ b/test/unit/changeset_test.rb @@ -255,6 +255,17 @@ class ChangesetTest < ActiveSupport::TestCase assert_equal 'ecookbook:r520', c.text_tag(Project.find(2)) end + def test_text_tag_revision_with_repository_identifier + r = Repository::Subversion.create!( + :project_id => 1, + :url => 'svn://localhost/test', + :identifier => 'documents') + + c = Changeset.new(:revision => '520', :repository => r) + assert_equal 'documents|r520', c.text_tag + assert_equal 'ecookbook:documents|r520', c.text_tag(Project.find(2)) + end + def test_text_tag_hash c = Changeset.new( :scmid => '7234cb2750b63f47bff735edc50a1c0a433c2518', |