spec/feedjira/preprocessor_spec.rb in feedjira-3.1.1 vs spec/feedjira/preprocessor_spec.rb in feedjira-3.1.2
- old
+ new
@@ -1,5 +1,7 @@
+# frozen_string_literal: true
+
require "spec_helper"
describe Feedjira::Preprocessor do
it "returns the xml as parsed by Nokogiri" do
xml = "<xml></xml>"
@@ -19,11 +21,11 @@
expect(escaped_parts[16]).to match(%r{<b>XHTML</b>}) # summary
expect(escaped_parts[26]).to match(/<p>$/) # content
end
it "leaves escaped html within pre tag" do
- processor = Feedjira::Preprocessor.new(sample_atom_xhtml_with_escpaed_html_in_pre_tag_feed) # rubocop:disable Metrics/LineLength
+ processor = Feedjira::Preprocessor.new(sample_atom_xhtml_with_escpaed_html_in_pre_tag_feed)
escaped = processor.to_xml
- expected_pre_tag = " <pre>&lt;b&gt;test&lt;b&gt;</pre>" # rubocop:disable Metrics/LineLength
+ expected_pre_tag = " <pre>&lt;b&gt;test&lt;b&gt;</pre>"
expect(escaped.split("\n")[7]).to eq(expected_pre_tag)
end
end