summaryrefslogtreecommitdiffstats
path: root/test/unit/repository_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit/repository_test.rb')
-rw-r--r--test/unit/repository_test.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/unit/repository_test.rb b/test/unit/repository_test.rb
index 27628964b..9e955f00f 100644
--- a/test/unit/repository_test.rb
+++ b/test/unit/repository_test.rb
@@ -60,13 +60,12 @@ class RepositoryTest < ActiveSupport::TestCase
def test_blank_log_encoding_error_message_fr
set_language_if_valid 'fr'
- str = "Encodage des messages de commit doit \xc3\xaatre renseign\xc3\xa9(e)".force_encoding('UTF-8')
repo = Repository::Bazaar.new(
:project => Project.find(3),
:url => "/test"
)
assert !repo.save
- assert_include str, repo.errors.full_messages
+ assert_include 'Encodage des messages de commit doit ĂȘtre renseignĂ©(e)', repo.errors.full_messages
end
def test_create
@@ -287,7 +286,7 @@ class RepositoryTest < ActiveSupport::TestCase
:url => '/foo/bar/baz' )
long_whitespace = " "
expected_comment = "This is a loooooooooooooooooooooooooooong comment"
- comment = "#{expected_comment}#{long_whitespace}\n"
+ comment = +"#{expected_comment}#{long_whitespace}\n"
3.times {comment << "#{long_whitespace}\n"}
changeset = Changeset.new(
:comments => comment, :commit_date => Time.now,