Sha256: 5f246c3499e4450634d9997d932243fdbce9e2bd59d51341ba78beb05c950694
Contents?: true
Size: 670 Bytes
Versions: 3
Compression:
Stored size: 670 Bytes
Contents
# -*- encoding : utf-8 -*- RSpec.shared_examples 'an actor' do # let(:contract) { Fabricate(:contract) } let(:data) do {} end describe '#build_request' do let(:request) { subject.build_request contract, data } it 'creates a PactoRequest' do expect(request).to be_an_instance_of Pacto::PactoRequest end end describe '#build_response' do # Shouldn't build response be building a response for a request? # let(:request) { Fabricate :pacto_request } let(:response) { subject.build_response contract, data } it 'creates a PactoResponse' do expect(response).to be_an_instance_of Pacto::PactoResponse end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
pacto-0.4.0.rc3 | spec/unit/pacto/actor_spec.rb |
pacto-0.4.0.rc2 | spec/unit/pacto/actor_spec.rb |
pacto-0.4.0.rc1 | spec/unit/pacto/actor_spec.rb |