Sha256: 43acc9fa7ebe4d949c38b654d32c32cf9feb6fa467b924bb8acc937fd0399dea
Contents?: true
Size: 611 Bytes
Versions: 1
Compression:
Stored size: 611 Bytes
Contents
# -*- encoding : utf-8 -*- module Pacto module DummyServer module JRubyWorkaroundHelper include Pacto::TestHelper def run_pacto WebMock.allow_net_connect! # There are issues with EventMachine on JRuby, so it can't currently us with_pacto if RUBY_PLATFORM == 'java' @server = Pacto::DummyServer::Dummy.new 8000, '/hello', '{"message": "Hello World!"}' @server.start yield @server.terminate else with_pacto(port: 8000, strip_port: true) do yield end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pacto-0.4.0.rc1 | spec/pacto/dummy_server/jruby_workaround_helper.rb |