summaryrefslogtreecommitdiff
path: root/test/test_wrapper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_wrapper.rb')
-rw-r--r--test/test_wrapper.rb26
1 files changed, 12 insertions, 14 deletions
diff --git a/test/test_wrapper.rb b/test/test_wrapper.rb
index f7e4871..4f3a4a9 100644
--- a/test/test_wrapper.rb
+++ b/test/test_wrapper.rb
@@ -21,18 +21,16 @@ class TestHighLineWrapper < Minitest::Test
def test_wrap_long_lines_correctly
long_line =
- "This is a long flowing paragraph meant to span " +
- "several lines. This text should definitely be " +
- "wrapped at the set limit, in the result. Your code " +
+ "This is a long flowing paragraph meant to span " \
+ "several lines. This text should definitely be " \
+ "wrapped at the set limit, in the result. Your code " \
"does well with things like this.\n\n"
wrapped_long_line =
- "This is a long flowing paragraph meant to span " +
- "several lines. This text should\n" +
-
- "definitely be wrapped at the set limit, in the " +
- "result. Your code does well with\n" +
-
+ "This is a long flowing paragraph meant to span " \
+ "several lines. This text should\n" \
+ "definitely be wrapped at the set limit, in the " \
+ "result. Your code does well with\n" \
"things like this.\n\n"
wrapped = wrap(long_line)
@@ -41,13 +39,13 @@ class TestHighLineWrapper < Minitest::Test
def test_dont_wrap_already_well_wrapped_text
well_formatted_text =
- " * This is a simple embedded list.\n" +
- " * You're code should not mess with this...\n" +
- " * Because it's already formatted correctly and does not\n" +
+ " * This is a simple embedded list.\n" \
+ " * You're code should not mess with this...\n" \
+ " * Because it's already formatted correctly and does not\n" \
" exceed the limit!\n"
wrapped = wrap(well_formatted_text)
- assert_equal well_formatted_text, wrapped
+ assert_equal well_formatted_text, wrapped
end
def test_wrap_single_word_longer_than_wrap_at
@@ -185,4 +183,4 @@ class TestHighLineWrapper < Minitest::Test
end
end
end
-end \ No newline at end of file
+end