summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJean-Baptiste Barth <jeanbaptiste.barth@gmail.com>2014-08-26 17:15:55 +0000
committerJean-Baptiste Barth <jeanbaptiste.barth@gmail.com>2014-08-26 17:15:55 +0000
commitfc99c1851f697cb92447ce28617a8eb84876f4e9 (patch)
tree803285ba222f89f56dedf3228a21772a67a737bb /test
parent41bf39df36550db5b6ba9ccc167ac02021f69edc (diff)
downloadredmine-fc99c1851f697cb92447ce28617a8eb84876f4e9.tar.gz
redmine-fc99c1851f697cb92447ce28617a8eb84876f4e9.zip
Fix text failing on some rubies/sql drivers because of improper length in Change#action (#13487).
git-svn-id: http://svn.redmine.org/redmine/trunk@13352 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r--test/unit/repository_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/unit/repository_test.rb b/test/unit/repository_test.rb
index 173483c2d..c23fbccbe 100644
--- a/test/unit/repository_test.rb
+++ b/test/unit/repository_test.rb
@@ -409,8 +409,8 @@ class RepositoryTest < ActiveSupport::TestCase
:revision => 101,
:comments => 'Another commit by foo.'
)
- Change.create!(:changeset => set, :action => 'create', :path => '/path/to/file1')
- Change.create!(:changeset => set, :action => 'create', :path => '/path/to/file2')
+ Change.create!(:changeset => set, :action => 'A', :path => '/path/to/file1')
+ Change.create!(:changeset => set, :action => 'A', :path => '/path/to/file2')
expected = {"dlopper"=>{:commits_count=>11, :changes_count=>5}}
assert_equal expected, repository.stats_by_author
end