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