Sha256: 7c1ad4b81985cdc41c90e357aed1a0e1e7d1c6edd8d36895c2c49306f96621c6

Contents?: true

Size: 510 Bytes

Versions: 48

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

48 entries across 48 versions & 4 rubygems

Version Path
page-object-1.2.0 features/support/ajax_text_environment.rb
page-object-1.1.1 features/support/ajax_text_environment.rb
page_object-1.1.3 features/support/ajax_text_environment.rb
page_object-1.1.2 features/support/ajax_text_environment.rb
page_object-1.1.1 features/support/ajax_text_environment.rb
page-object-1.1.0 features/support/ajax_text_environment.rb
page-object-lds-0.0.14 features/support/ajax_text_environment.rb
page-object-lds-0.0.13 features/support/ajax_text_environment.rb
page-object-lds-0.0.12 features/support/ajax_text_environment.rb
page-object-lds-0.0.11 features/support/ajax_text_environment.rb
page-object-lds-0.0.1 features/support/ajax_text_environment.rb
page-object-1.0.3 features/support/ajax_text_environment.rb
meeane-page-object-0.1.11 features/support/ajax_text_environment.rb
page-object-1.0.2 features/support/ajax_text_environment.rb
page-object-1.0.1 features/support/ajax_text_environment.rb
page-object-1.0 features/support/ajax_text_environment.rb
page-object-0.9.8 features/support/ajax_text_environment.rb
page-object-0.9.7 features/support/ajax_text_environment.rb
page-object-0.9.6 features/support/ajax_text_environment.rb
page-object-0.9.5 features/support/ajax_text_environment.rb