summaryrefslogtreecommitdiff
path: root/spec/functional/http
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2014-04-22 11:36:31 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2014-04-22 11:36:31 -0700
commit23c5d8d8b9ca1977ab7d7cbd83c20b766608485d (patch)
treeefa996951e6e4256b377413478bbd7ee77000315 /spec/functional/http
parent5b8788c64898a0cb101d30c97e3529ebc878d384 (diff)
downloadchef-23c5d8d8b9ca1977ab7d7cbd83c20b766608485d.tar.gz
fix mixing should + expect rspec syntax in same file
Diffstat (limited to 'spec/functional/http')
-rw-r--r--spec/functional/http/simple_spec.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/functional/http/simple_spec.rb b/spec/functional/http/simple_spec.rb
index 9afd57e93f..bef7b6e43d 100644
--- a/spec/functional/http/simple_spec.rb
+++ b/spec/functional/http/simple_spec.rb
@@ -38,10 +38,10 @@ describe Chef::HTTP::Simple do
it "successfully downloads a streaming request" do
tempfile = http_client.streaming_request(source, {})
tempfile.close
- Digest::MD5.hexdigest(binread(tempfile.path)).should == Digest::MD5.hexdigest(expected_content)
+ expect(Digest::MD5.hexdigest(binread(tempfile.path))).to eq(Digest::MD5.hexdigest(expected_content))
end
it "successfully does a non-streaming GET request" do
- Digest::MD5.hexdigest(http_client.get(source)).should == Digest::MD5.hexdigest(expected_content)
+ expect(Digest::MD5.hexdigest(http_client.get(source))).to eq(Digest::MD5.hexdigest(expected_content))
end
end
@@ -68,12 +68,12 @@ describe Chef::HTTP::Simple do
it "fails with a Net::HTTPServerException for a streaming request" do
tempfile = http_client.streaming_request(source)
tempfile.close
- Digest::MD5.hexdigest(binread(tempfile.path)).should == Digest::MD5.hexdigest(expected_content)
+ expect(Digest::MD5.hexdigest(binread(tempfile.path))).to eq(Digest::MD5.hexdigest(expected_content))
expect { http_client.streaming_request(source2) }.to raise_error(Net::HTTPServerException)
end
it "fails with a Net::HTTPServerException for a GET request" do
- Digest::MD5.hexdigest(http_client.get(source)).should == Digest::MD5.hexdigest(expected_content)
+ expect(Digest::MD5.hexdigest(http_client.get(source))).to eq(Digest::MD5.hexdigest(expected_content))
expect { http_client.get(source2) }.to raise_error(Net::HTTPServerException)
end
end