scm: cvs: add unit adapter test of default path_encoding is UTF-8 (#3462).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5867 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
0840ad69ea
commit
c8309589b6
|
@ -47,6 +47,22 @@ begin
|
|||
assert_equal entries[0].lastrev.time, Time.gm(2007, 12, 13, 16, 27, 22)
|
||||
end
|
||||
|
||||
def test_path_encoding_default_utf8
|
||||
adpt1 = Redmine::Scm::Adapters::CvsAdapter.new(
|
||||
MODULE_NAME,
|
||||
REPOSITORY_PATH
|
||||
)
|
||||
assert_equal "UTF-8", adpt1.path_encoding
|
||||
adpt2 = Redmine::Scm::Adapters::CvsAdapter.new(
|
||||
MODULE_NAME,
|
||||
REPOSITORY_PATH,
|
||||
nil,
|
||||
nil,
|
||||
""
|
||||
)
|
||||
assert_equal "UTF-8", adpt2.path_encoding
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def test_scm_version_for(scm_command_version, version)
|
||||
|
|
Loading…
Reference in New Issue