diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-01-11 15:23:22 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-01-11 15:23:22 +0000 |
commit | e92cd2091cbb251f0cc27e2aabb7058db40c7f00 (patch) | |
tree | 016d500b36ce5f6b17bf32489fb09b7ea581e00d /test/unit | |
parent | 6a6b68d29515cea7c83a8651cfc9b5d7490a6f4c (diff) | |
download | redmine-e92cd2091cbb251f0cc27e2aabb7058db40c7f00.tar.gz redmine-e92cd2091cbb251f0cc27e2aabb7058db40c7f00.zip |
scm: fix assert_equal parameter order in subversion and git unit test.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4691 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit')
-rw-r--r-- | test/unit/repository_git_test.rb | 7 | ||||
-rw-r--r-- | test/unit/repository_subversion_test.rb | 4 |
2 files changed, 6 insertions, 5 deletions
diff --git a/test/unit/repository_git_test.rb b/test/unit/repository_git_test.rb index 10ca791b2..fc03d60ba 100644 --- a/test/unit/repository_git_test.rb +++ b/test/unit/repository_git_test.rb @@ -74,16 +74,17 @@ class RepositoryGitTest < ActiveSupport::TestCase @repository.fetch_changesets @repository.reload c = @repository.changesets.find_by_revision('7234cb2750b63f47bff735edc50a1c0a433c2518') - assert_equal c.format_identifier, '7234cb27' + assert_equal '7234cb27', c.format_identifier end def test_activities - c = Changeset.new(:repository => @repository, :committed_on => Time.now, + c = Changeset.new(:repository => @repository, + :committed_on => Time.now, :revision => 'abc7234cb2750b63f47bff735edc50a1c0a433c2', :scmid => 'abc7234cb2750b63f47bff735edc50a1c0a433c2', :comments => 'test') assert c.event_title.include?('abc7234c:') - assert_equal c.event_url[:rev], 'abc7234cb2750b63f47bff735edc50a1c0a433c2' + assert_equal 'abc7234cb2750b63f47bff735edc50a1c0a433c2', c.event_url[:rev] end else puts "Git test repository NOT FOUND. Skipping unit tests !!!" diff --git a/test/unit/repository_subversion_test.rb b/test/unit/repository_subversion_test.rb index c61431b33..46a4ad74a 100644 --- a/test/unit/repository_subversion_test.rb +++ b/test/unit/repository_subversion_test.rb @@ -119,14 +119,14 @@ class RepositorySubversionTest < ActiveSupport::TestCase c = Changeset.new(:repository => @repository, :committed_on => Time.now, :revision => '1', :comments => 'test') assert c.event_title.include?('1:') - assert_equal c.event_url[:rev], '1' + assert_equal '1', c.event_url[:rev] end def test_activities_nine_digit c = Changeset.new(:repository => @repository, :committed_on => Time.now, :revision => '123456789', :comments => 'test') assert c.event_title.include?('123456789:') - assert_equal c.event_url[:rev], '123456789' + assert_equal '123456789', c.event_url[:rev] end else puts "Subversion test repository NOT FOUND. Skipping unit tests !!!" |