spec/integration/pact/provider_configuration_spec.rb in pact-1.1.0.rc2 vs spec/integration/pact/provider_configuration_spec.rb in pact-1.1.0.rc3
- old
+ new
@@ -7,14 +7,15 @@
class TestHelper
include Pact::Provider::RSpec::InstanceMethods
end
let(:application) { double("App")}
+
before do
app_block = ->{ application }
Pact.service_provider "My Provider" do
app &app_block
- end
+ end
end
it "makes the app available to the tests" do
expect(TestHelper.new.app).to be(application)
end
\ No newline at end of file