diff options
Diffstat (limited to 'test/unit/repository_bazaar_test.rb')
-rw-r--r-- | test/unit/repository_bazaar_test.rb | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/test/unit/repository_bazaar_test.rb b/test/unit/repository_bazaar_test.rb index 06c3a2c9c..3461b50c6 100644 --- a/test/unit/repository_bazaar_test.rb +++ b/test/unit/repository_bazaar_test.rb @@ -46,8 +46,8 @@ class RepositoryBazaarTest < ActiveSupport::TestCase RUN_LATIN1_OUTPUT_TEST = (RUBY_PLATFORM != 'java' && Encoding.locale_charmap == "ISO-8859-1") - CHAR_1_UTF8_HEX = "\xc3\x9c".force_encoding('UTF-8') - CHAR_1_LATIN1_HEX = "\xdc".force_encoding('ASCII-8BIT') + CHAR_1_UTF8_HEX = 'Ü' + CHAR_1_LATIN1_HEX = (+"\xdc").force_encoding('ASCII-8BIT') def setup User.current = nil @@ -72,7 +72,6 @@ class RepositoryBazaarTest < ActiveSupport::TestCase def test_blank_path_to_repository_error_message_fr set_language_if_valid 'fr' - str = "Chemin du d\xc3\xa9p\xc3\xb4t doit \xc3\xaatre renseign\xc3\xa9(e)".force_encoding('UTF-8') repo = Repository::Bazaar.new( :project => @project, :url => "", @@ -80,7 +79,7 @@ class RepositoryBazaarTest < ActiveSupport::TestCase :log_encoding => 'UTF-8' ) assert !repo.save - assert_include str, repo.errors.full_messages + assert_include 'Chemin du dépôt doit être renseigné(e)', repo.errors.full_messages end if File.directory?(REPOSITORY_PATH_TRUNK) |