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