@@ -175,13 +175,15 class ChangesetTest < ActiveSupport::TestCase | |||||
175 |
|
175 | |||
176 | def test_commit_referencing_a_parent_project_issue |
|
176 | def test_commit_referencing_a_parent_project_issue | |
177 | # repository of child project |
|
177 | # repository of child project | |
178 | r = Repository::Subversion.create!(:project => Project.find(3), :url => 'svn://localhost/test') |
|
178 | r = Repository::Subversion.create!( | |
179 |
|
179 | :project => Project.find(3), | ||
|
180 | :url => 'svn://localhost/test') | |||
|
181 | ||||
180 | c = Changeset.new(:repository => r, |
|
182 | c = Changeset.new(:repository => r, | |
181 | :committed_on => Time.now, |
|
183 | :committed_on => Time.now, | |
182 | :comments => 'refs #2, an issue of a parent project') |
|
184 | :comments => 'refs #2, an issue of a parent project') | |
183 | c.scan_comment_for_issue_ids |
|
185 | c.scan_comment_for_issue_ids | |
184 |
|
186 | |||
185 | assert_equal [2], c.issue_ids.sort |
|
187 | assert_equal [2], c.issue_ids.sort | |
186 | assert c.issues.first.project != c.project |
|
188 | assert c.issues.first.project != c.project | |
187 | end |
|
189 | end | |
@@ -192,7 +194,9 class ChangesetTest < ActiveSupport::TestCase | |||||
192 | end |
|
194 | end | |
193 |
|
195 | |||
194 | def test_text_tag_hash |
|
196 | def test_text_tag_hash | |
195 | c = Changeset.new(:scmid => '7234cb2750b63f47bff735edc50a1c0a433c2518', :revision => '7234cb2750b63f47bff735edc50a1c0a433c2518') |
|
197 | c = Changeset.new( | |
|
198 | :scmid => '7234cb2750b63f47bff735edc50a1c0a433c2518', | |||
|
199 | :revision => '7234cb2750b63f47bff735edc50a1c0a433c2518') | |||
196 | assert_equal 'commit:7234cb2750b63f47bff735edc50a1c0a433c2518', c.text_tag |
|
200 | assert_equal 'commit:7234cb2750b63f47bff735edc50a1c0a433c2518', c.text_tag | |
197 | end |
|
201 | end | |
198 |
|
202 |
General Comments 0
You need to be logged in to leave comments.
Login now