Sha256: d5e899c4f623130bdd918e87e7b2011bf36fc9b7c6f3e1877728e33840e0c873
Contents?: true
Size: 1.14 KB
Versions: 9
Compression:
Stored size: 1.14 KB
Contents
require 'spec_helper' require 'pact/provider/configuration/pact_verification' module Pact module Provider module Configuration describe PactVerification do describe 'create_verification' do let(:url) {'http://some/uri'} let(:consumer_name) {'some consumer'} let(:ref) {:prod} let(:options) { {:ref => :prod} } context "with valid values" do subject do uri = url PactVerification.build(consumer_name, options) do pact_uri uri end end it "creates a Verification" do expect(Pact::Provider::PactVerification).to receive(:new).with(consumer_name, url, ref) subject end end context "with a nil uri" do subject do PactVerification.build(consumer_name, options) do pact_uri nil end end it "raises a validation error" do expect{ subject }.to raise_error /Please provide a pact_uri/ end end end end end end end
Version data entries
9 entries across 9 versions & 1 rubygems