Sha256: 2880dba1cc0d9f8e47cb07e6cf91da23a33222a3c1e696a98ec4ba0d551fa2d7
Contents?: true
Size: 570 Bytes
Versions: 2
Compression:
Stored size: 570 Bytes
Contents
require_relative '../spec_helper' describe Rhinestone::HttpClient, :vcr do let(:header_filter) { stub(:header_filter) } let(:http_client) { Rhinestone::HttpClient.new("rubygems.org", header_filter) } it "returns a Rhinestone::Response" do header_filter.should_receive(:filter).and_return {|headers| headers} response = nil EM.synchrony do response = http_client.get("/") EM.stop end response.status.should == 200 response.headers['Content-Type'].should_not be_nil response.body.should include('RubyGems.org') end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rhinestone-0.0.2 | spec/rhinestone/http_client_spec.rb |
rhinestone-0.0.1 | spec/rhinestone/http_client_spec.rb |