Sha256: ce29176dffe4fc2845990c7d1d184d7709ebb0b79c0b81229800e476cc5b6b42

Contents?: true

Size: 510 Bytes

Versions: 13

Compression:

Stored size: 510 Bytes

Contents

require File.dirname(__FILE__) + "/../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

13 entries across 13 versions & 2 rubygems

Version Path
druid-s-1.0.0 features/support/ajax_test_environment.rb
druid-ts-1.2.6 features/support/ajax_test_environment.rb
druid-ts-1.2.5 features/support/ajax_test_environment.rb
druid-ts-1.2.4 features/support/ajax_test_environment.rb
druid-ts-1.2.3 features/support/ajax_test_environment.rb
druid-ts-1.2.2 features/support/ajax_test_environment.rb
druid-ts-1.2.1 features/support/ajax_test_environment.rb
druid-ts-1.2.0 features/support/ajax_test_environment.rb
druid-ts-1.1.8 features/support/ajax_test_environment.rb
druid-ts-1.1.7 features/support/ajax_test_environment.rb
druid-ts-1.1.6 features/support/ajax_test_environment.rb
druid-ts-1.1.5 features/support/ajax_test_environment.rb
druid-ts-1.1.4 features/support/ajax_test_environment.rb