Sha256: 987817f0c57c01b85c88bb51f106e8abfa2032d6f384661503e46db4a20c1851
Contents?: true
Size: 412 Bytes
Versions: 4
Compression:
Stored size: 412 Bytes
Contents
require 'pact/provider/rspec' require 'rspec/mocks' class StubbedThing def self.stub_me end end class App def self.call env [200, {}, [StubbedThing.stub_me]] end end Pact.provider_states_for 'Consumer' do provider_state 'something is stubbed' do set_up do StubbedThing.stub(:stub_me).and_return("stubbing works") end end end Pact.service_provider 'Provider' do app { App } end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
pact-1.0.32 | spec/support/stubbing.rb |
pact-1.0.31 | spec/support/stubbing.rb |
pact-1.0.30 | spec/support/stubbing.rb |
pact-1.0.29 | spec/support/stubbing.rb |