Sha256: 59c0caf698f6315d2cc49f7abc72b8607cc5a43b8bb121a04eac41584a0cdced
Contents?: true
Size: 560 Bytes
Versions: 2
Compression:
Stored size: 560 Bytes
Contents
require 'spec_helper' RSpec.describe Apitizer::Result do let(:path) { double('Path') } let(:request) { double('Request', path: path) } let(:content) { double('Content') } let(:response) { double('Response', code: 200, content: content) } subject { Apitizer::Result.new(request: request, response: response) } it { should == content } it { should be_a(content.class) } it { should be_kind_of(content.class) } it { should be_instance_of(content.class) } it { expect(subject.path).to eq(path) } it { expect(subject.code).to eq(200) } end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
apitizer-0.0.3 | spec/apitizer/result_spec.rb |
apitizer-0.0.2 | spec/apitizer/result_spec.rb |