From 9ed12bd761f298dc31bc71ddd3a38b34ff82c921 Mon Sep 17 00:00:00 2001 From: Thomas Nys Date: Sat, 18 Apr 2015 13:39:48 +0200 Subject: [PATCH] Mitigates Style/AlgignParameters --- spec/httparty/net_digest_auth_spec.rb | 2 +- spec/httparty/request_spec.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/httparty/net_digest_auth_spec.rb b/spec/httparty/net_digest_auth_spec.rb index d0387c0..aec663c 100644 --- a/spec/httparty/net_digest_auth_spec.rb +++ b/spec/httparty/net_digest_auth_spec.rb @@ -3,7 +3,7 @@ require File.expand_path(File.join(File.dirname(__FILE__), '..', 'spec_helper')) RSpec.describe Net::HTTPHeader::DigestAuthenticator do def setup_digest(response) digest = Net::HTTPHeader::DigestAuthenticator.new("Mufasa", - "Circle Of Life", "GET", "/dir/index.html", response) + "Circle Of Life", "GET", "/dir/index.html", response) allow(digest).to receive(:random).and_return("deadbeef") allow(Digest::MD5).to receive(:hexdigest) { |str| "md5(#{str})" } digest diff --git a/spec/httparty/request_spec.rb b/spec/httparty/request_spec.rb index 3cfd6fc..862bbd2 100644 --- a/spec/httparty/request_spec.rb +++ b/spec/httparty/request_spec.rb @@ -113,7 +113,7 @@ RSpec.describe HTTParty::Request do it "should use digest auth when configured" do FakeWeb.register_uri(:get, "http://api.foo.com/v1", - www_authenticate: 'Digest realm="Log Viewer", qop="auth", nonce="2CA0EC6B0E126C4800E56BA0C0003D3C", opaque="5ccc069c403ebaf9f0171e9517f40e41", stale=false') + www_authenticate: 'Digest realm="Log Viewer", qop="auth", nonce="2CA0EC6B0E126C4800E56BA0C0003D3C", opaque="5ccc069c403ebaf9f0171e9517f40e41", stale=false') @request.options[:digest_auth] = {username: 'foobar', password: 'secret'} @request.send(:setup_raw_request)