From e0ee9dacd1bf6acab6774a2add992ae14fa0e2fc Mon Sep 17 00:00:00 2001 From: "http://jneen.net/" Date: Tue, 21 Jun 2016 11:24:12 -0700 Subject: [PATCH] remove uses of the nowrap: feature --- spec/helpers/blob_helper_spec.rb | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/spec/helpers/blob_helper_spec.rb b/spec/helpers/blob_helper_spec.rb index b6e18c6a753..e5dfa61fa6a 100644 --- a/spec/helpers/blob_helper_spec.rb +++ b/spec/helpers/blob_helper_spec.rb @@ -16,19 +16,19 @@ describe BlobHelper do describe '#highlight' do it 'should return plaintext for unknown lexer context' do - result = helper.highlight(blob_name, no_context_content, nowrap: true) - expect(result).to eq(':type "assem"))') + result = helper.highlight(blob_name, no_context_content) + expect(result).to eq(%<
:type "assem"))
>) end it 'should highlight single block' do - expected = %Q[(make-pathname :defaults name -:type "assem"))] + expected = %Q[
(make-pathname :defaults name
+:type "assem"))
] - expect(helper.highlight(blob_name, blob_content, nowrap: true)).to eq(expected) + expect(helper.highlight(blob_name, blob_content)).to eq(expected) end it 'should highlight multi-line comments' do - result = helper.highlight(blob_name, multiline_content, nowrap: true) + result = helper.highlight(blob_name, multiline_content) html = Nokogiri::HTML(result) lines = html.search('.s') expect(lines.count).to eq(3) @@ -41,14 +41,14 @@ describe BlobHelper do let(:blob_name) { 'test.diff' } let(:blob_content) { "+aaa\n+bbb\n- ccc\n ddd\n"} let(:expected) do - %q(+aaa + %q(
+aaa
 +bbb
 - ccc
- ddd)
+ ddd
) end it 'should highlight each line properly' do - result = helper.highlight(blob_name, blob_content, nowrap: true) + result = helper.highlight(blob_name, blob_content) expect(result).to eq(expected) end end