Sha256: 4e9251e625b9b444526bf4a09102cb718cd1a1cecea434aae3b4b217e9c2cb08

Contents?: true

Size: 253 Bytes

Versions: 10

Compression:

Stored size: 253 Bytes

Contents

require 'pact/provider/rspec'

class App
  def self.call env
    if env['REQUEST_METHOD'] == 'OPTIONS'
      [200, {}, []]
    else
      [500, {}, ["Expected an options request"]]
    end
  end
end

Pact.service_provider 'Provider' do
  app { App }
end

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
pact-mock_service-0.2.2 spec/support/options_app.rb
pact-mock_service-0.2.1 spec/support/options_app.rb
pact-mock_service-0.2.0 spec/support/options_app.rb
pact-1.4.0.rc4 spec/support/options_app.rb
pact-mock_service-0.1.0 spec/support/options_app.rb
pact-1.4.0.rc3 spec/support/options_app.rb
pact-1.4.0.rc2 spec/support/options_app.rb
pact-mock_service-0.0.1 spec/support/options_app.rb
pact-1.3.3 spec/support/options_app.rb
pact-1.3.2 spec/support/options_app.rb