-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use "should eq(...)" instead of "should ==" to avoid ruby warning.
- Loading branch information
1 parent
1dcba45
commit 8fc0f6e
Showing
27 changed files
with
173 additions
and
165 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,11 +27,11 @@ def adapter_enabled?(adapter) | |
VCR::HttpStubbingAdapters::Common.adapters.each do |adapter| | ||
if adapter == described_class | ||
it "yields with #{adapter} enabled" do | ||
adapter_enabled?(adapter).should == true | ||
adapter_enabled?(adapter).should eq(true) | ||
end | ||
else | ||
it "yields without #{adapter} enabled" do | ||
adapter_enabled?(adapter).should == false | ||
adapter_enabled?(adapter).should eq(false) | ||
end | ||
end | ||
end | ||
|
@@ -48,14 +48,14 @@ def adapter_enabled?(adapter) | |
it 'returns the uri for the given http request' do | ||
net_http = Net::HTTP.new('example.com', 80) | ||
request = Net::HTTP::Get.new('/foo/bar') | ||
subject.request_uri(net_http, request).should == 'http://example.com:80/foo/bar' | ||
subject.request_uri(net_http, request).should eq('http://example.com:80/foo/bar') | ||
end | ||
|
||
it 'handles basic auth' do | ||
net_http = Net::HTTP.new('example.com',80) | ||
request = Net::HTTP::Get.new('/auth.txt') | ||
request.basic_auth 'user', 'pass' | ||
subject.request_uri(net_http, request).should == 'http://user:[email protected]:80/auth.txt' | ||
subject.request_uri(net_http, request).should eq('http://user:[email protected]:80/auth.txt') | ||
end | ||
end | ||
|
||
|
@@ -73,12 +73,12 @@ def self.matching_on(attribute, valid1, valid2, invalid, &block) | |
|
||
[valid1, valid2].each do |val| | ||
it "returns true for a #{val.inspect} request" do | ||
subject.request_stubbed?(request(val), [attribute]).should == true | ||
subject.request_stubbed?(request(val), [attribute]).should eq(true) | ||
end | ||
end | ||
|
||
it "returns false for another #{attribute}" do | ||
subject.request_stubbed?(request(invalid), [attribute]).should == false | ||
subject.request_stubbed?(request(invalid), [attribute]).should eq(false) | ||
end | ||
else | ||
it 'raises an error indicating matching requests on this attribute is not supported' do | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.