spec/api_request_spec.rb in jekyll-twitter-plugin-2.0.0 vs spec/api_request_spec.rb in jekyll-twitter-plugin-2.1.0

- old
+ new

@@ -1,6 +1,7 @@ # frozen_string_literal: true + RSpec.describe TwitterJekyll::ApiRequest do subject(:api_request) { described_class.new(url, params) } let(:url) { "https://twitter.com/twitter_user/status/12345" } let(:params) { {} } @@ -21,10 +22,10 @@ context "with params" do let(:params) { { align: "right" } } it "has encoded query params" do - expect(URI.decode_www_form(uri.query)).to match_array [["url", url], %w(align right)] + expect(URI.decode_www_form(uri.query)).to match_array [["url", url], %w[align right]] end end context "with an incorrectly passed url param" do let(:params) { { url: "why" } }