spec/feedjira/parser/atom_entry_spec.rb in feedjira-3.1.1 vs spec/feedjira/parser/atom_entry_spec.rb in feedjira-3.1.2

- old
+ new

@@ -1,5 +1,7 @@ +# frozen_string_literal: true + require "spec_helper" describe Feedjira::Parser::AtomEntry do before(:each) do # I don't really like doing it this way because these unit test should only @@ -30,21 +32,21 @@ it "should parse the content" do expect(@entry.content).to eq sample_atom_entry_content end it "should provide a summary" do - summary = "Late last year an entrepreneur from Turkey visited me at Amazon HQ in Seattle. We talked about his plans to use AWS as part of his new social video portal startup. I won't spill any beans before he's ready to..." # rubocop:disable Metrics/LineLength + summary = "Late last year an entrepreneur from Turkey visited me at Amazon HQ in Seattle. We talked about his plans to use AWS as part of his new social video portal startup. I won't spill any beans before he's ready to..." expect(@entry.summary).to eq summary end it "should parse the published date" do published = Time.parse_safely "Fri Jan 16 18:21:00 UTC 2009" expect(@entry.published).to eq published end it "should parse the categories" do - expect(@entry.categories).to eq %w(Turkey Seattle) + expect(@entry.categories).to eq %w[Turkey Seattle] end it "should parse the updated date" do updated = Time.parse_safely "Fri Jan 16 18:21:00 UTC 2009" expect(@entry.updated).to eq updated @@ -67,11 +69,11 @@ title_value = value if field == "title" end expect(title_value).to eq "AWS Job: Architect & Designer Position in Turkey" - expected_fields = %w( + expected_fields = %w[ author categories content entry_id links @@ -79,10 +81,10 @@ summary title title_type updated url - ) + ] expect(all_fields.sort).to eq expected_fields end it "should support checking if a field exists in the entry" do expect(@entry).to include "author"