diff options
author | Willian Balmant <willchb@gmail.com> | 2019-04-11 19:09:03 +0300 |
---|---|---|
committer | Willian Balmant <willchb@gmail.com> | 2019-04-11 19:09:03 +0300 |
commit | b27b8dc0c2e38689f519198ea127b60437e13983 (patch) | |
tree | a0c20cf975ebe748fb7253618c50e79e8bec965d /spec/lib/banzai/filter/table_of_contents_filter_spec.rb | |
parent | 2075ef7d071286ad156ca13640336572bb20bceb (diff) |
Use strip to remove leading/trailing spaces
Change based on comments in MR #27025
Diffstat (limited to 'spec/lib/banzai/filter/table_of_contents_filter_spec.rb')
-rw-r--r-- | spec/lib/banzai/filter/table_of_contents_filter_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/lib/banzai/filter/table_of_contents_filter_spec.rb b/spec/lib/banzai/filter/table_of_contents_filter_spec.rb index f776e21a89e..4a9880ac85a 100644 --- a/spec/lib/banzai/filter/table_of_contents_filter_spec.rb +++ b/spec/lib/banzai/filter/table_of_contents_filter_spec.rb @@ -59,7 +59,7 @@ describe Banzai::Filter::TableOfContentsFilter do end it 'removes any leading or trailing spaces' do - doc = filter(header(1, " \r\n \t Title with spaces \r\n\t ")) + doc = filter(header(1, " \r\n\tTitle with spaces\r\n\t ")) expect(doc.css('h1 a').first.attr('href')).to eq '#title-with-spaces' end |