summaryrefslogtreecommitdiffstats
path: root/test/unit
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-03-17 03:53:08 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-03-17 03:53:08 +0000
commit8d0d1d50ccbab8417e36218cfded181db5cc1710 (patch)
treef58df9228b930df5df6dc2e7f0541647b736a98a /test/unit
parentc0515720704e1c82f9dfafe1261a4be794ee4c1d (diff)
downloadredmine-8d0d1d50ccbab8417e36218cfded181db5cc1710.tar.gz
redmine-8d0d1d50ccbab8417e36218cfded181db5cc1710.zip
scm: code clean up unit model changeset test.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5161 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit')
-rw-r--r--test/unit/changeset_test.rb12
1 files changed, 8 insertions, 4 deletions
diff --git a/test/unit/changeset_test.rb b/test/unit/changeset_test.rb
index e2628e08b..80fb429a0 100644
--- a/test/unit/changeset_test.rb
+++ b/test/unit/changeset_test.rb
@@ -175,13 +175,15 @@ class ChangesetTest < ActiveSupport::TestCase
def test_commit_referencing_a_parent_project_issue
# repository of child project
- r = Repository::Subversion.create!(:project => Project.find(3), :url => 'svn://localhost/test')
-
+ r = Repository::Subversion.create!(
+ :project => Project.find(3),
+ :url => 'svn://localhost/test')
+
c = Changeset.new(:repository => r,
:committed_on => Time.now,
:comments => 'refs #2, an issue of a parent project')
c.scan_comment_for_issue_ids
-
+
assert_equal [2], c.issue_ids.sort
assert c.issues.first.project != c.project
end
@@ -192,7 +194,9 @@ class ChangesetTest < ActiveSupport::TestCase
end
def test_text_tag_hash
- c = Changeset.new(:scmid => '7234cb2750b63f47bff735edc50a1c0a433c2518', :revision => '7234cb2750b63f47bff735edc50a1c0a433c2518')
+ c = Changeset.new(
+ :scmid => '7234cb2750b63f47bff735edc50a1c0a433c2518',
+ :revision => '7234cb2750b63f47bff735edc50a1c0a433c2518')
assert_equal 'commit:7234cb2750b63f47bff735edc50a1c0a433c2518', c.text_tag
end