Sha256: ab05c96983fa053b6c43f5b25b5df634ca1a3d8dd155be015e505a043e02db70

Contents?: true

Size: 1.13 KB

Versions: 17

Compression:

Stored size: 1.13 KB

Contents

require "rubygems"
require "spec"
require "spec/autorun"
require "selenium_rc"
require "thin"
dir = File.dirname(__FILE__)
LIBRARY_ROOT_DIR = File.expand_path("#{dir}/../..")
require "#{LIBRARY_ROOT_DIR}/vendor/js-test-core/spec/spec_helpers/be_http"
require "#{LIBRARY_ROOT_DIR}/vendor/js-test-core/spec/spec_helpers/show_test_exceptions"
require "#{dir}/functional_spec_server_starter"
ARGV.push("-b")

Spec::Runner.configure do |config|
  config.mock_with :rr
end

Sinatra::Application.use ShowTestExceptions
Sinatra::Application.set :raise_errors, true

Sinatra::Application.use(ScrewUnit::App)


class Spec::ExampleGroup
  include WaitFor
  attr_reader :spec_root_path, :public_path

  before(:all) do
    @spec_root_path = FunctionalSpecServerStarter.spec_root_path
    @public_path = FunctionalSpecServerStarter.public_path
    unless SeleniumRC::Server.service_is_running?
      Thread.start do
        SeleniumRC::Server.boot
      end
    end
    FunctionalSpecServerStarter.call
    TCPSocket.wait_for_service :host => "0.0.0.0", :port => "4444"
  end

  def root_url
    "http://#{ScrewUnit::DEFAULT_HOST}:#{ScrewUnit::DEFAULT_PORT}"
  end
end

Version data entries

17 entries across 17 versions & 4 rubygems

Version Path
pivotal-screw-unit-0.5.0 spec/functional/functional_spec_helper.rb
pivotal-screw-unit-0.5.1 spec/functional/functional_spec_helper.rb
pivotal-screw-unit-0.5.2 spec/functional/functional_spec_helper.rb
pivotal-screw-unit-0.5.3 spec/functional/functional_spec_helper.rb
pivotal-screw-unit-server-0.5.10 spec/functional/functional_spec_helper.rb
pivotal-screw-unit-server-0.5.11 spec/functional/functional_spec_helper.rb
pivotal-screw-unit-server-0.5.12 spec/functional/functional_spec_helper.rb
pivotal-screw-unit-server-0.5.3 spec/functional/functional_spec_helper.rb
pivotal-screw-unit-server-0.5.4 spec/functional/functional_spec_helper.rb
pivotal-screw-unit-server-0.5.5 spec/functional/functional_spec_helper.rb
pivotal-screw-unit-server-0.5.6 spec/functional/functional_spec_helper.rb
pivotal-screw-unit-server-0.5.7 spec/functional/functional_spec_helper.rb
pivotal-screw-unit-server-0.5.8 spec/functional/functional_spec_helper.rb
pivotal-screw-unit-server-0.5.9 spec/functional/functional_spec_helper.rb
screw-unit-0.5.1 spec/functional/functional_spec_helper.rb
screw-unit-server-0.5.3 spec/functional/functional_spec_helper.rb
screw-unit-0.5.2 spec/functional/functional_spec_helper.rb