Sha256: 54e83b301ffb4d8a8fdb854a5a226ad86c8ded864dc1221710855ae14aa50825
Contents?: true
Size: 493 Bytes
Versions: 2
Compression:
Stored size: 493 Bytes
Contents
require_relative "../sample-app/sample_app" class AjaxTestEnvironment def run Thread.abort_on_exception = true @example_app = Thread.new { SampleApp.start("127.0.0.1", 4567) } poller = Selenium::WebDriver::SocketPoller.new("127.0.0.1", 4567, 60) unless poller.connected? raise "timed out waiting for SampleApp to launch" end self end def stop @example_app.kill end end @server = AjaxTestEnvironment.new @server.run at_exit do @server.stop end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
druid-ts-1.1.3 | features/support/ajax_test_environment.rb |
druid-ts-1.1.2 | features/support/ajax_test_environment.rb |