Sha256: caa7db2e92c5a045c025d740e21e8cb51b433145676e45e09bab3ac69f172052
Contents?: true
Size: 578 Bytes
Versions: 1
Compression:
Stored size: 578 Bytes
Contents
require File.expand_path(File.join(File.dirname(__FILE__), '../spec_helper')) RSpec.describe HTTParty::ResponseFragment do it "access to fragment" do fragment = HTTParty::ResponseFragment.new("chunk", nil, nil) expect(fragment).to eq("chunk") end it "has access to delegators" do response = double(code: '200') connection = double fragment = HTTParty::ResponseFragment.new("chunk", response, connection) expect(fragment.code).to eq(200) expect(fragment.http_response).to eq response expect(fragment.connection).to eq connection end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
httparty-0.17.0 | spec/httparty/response_fragment_spec.rb |