Sha256: cb87f4d246fcdfdff2f34c6d9f17c500afa05b266174439a82b8a94f41f29b20
Contents?: true
Size: 598 Bytes
Versions: 2
Compression:
Stored size: 598 Bytes
Contents
require 'spec_helper' module Pacto describe RequestPattern do let(:method) { :get } let(:uri_pattern) { double } let(:request_pattern) { double } let(:request) { double(method: method) } it 'returns a pattern that combines the contracts method and uri_pattern' do expect(UriPattern).to receive(:for). with(request). and_return(uri_pattern) expect(WebMock::RequestPattern).to receive(:new). with(method, uri_pattern). and_return(request_pattern) expect(RequestPattern.for(request)).to eq request_pattern end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pacto-0.3.1 | spec/unit/pacto/request_pattern_spec.rb |
pacto-0.3.0 | spec/unit/pacto/request_pattern_spec.rb |