Sha256: 48e1487fd3c0903df0cba3691ff3bddf4e294f88a33e0b50a5dbada7e211981f

Contents?: true

Size: 555 Bytes

Versions: 10

Compression:

Stored size: 555 Bytes

Contents

require "rubygems"
require "spec"

$LOAD_PATH.unshift File.dirname(__FILE__) + "/../../../../lib"
require "webrat"

Webrat.configure do |config|
  config.mode = :mechanize
end

Spec::Runner.configure do |config|
  config.include Webrat::Methods
  config.include Webrat::Matchers

  config.before :suite do
    if File.exists?("rack.pid")
      Process.kill("TERM", File.read("rack.pid").to_i)
    end

    system "rackup --daemonize --pid rack.pid config.ru"
  end

  config.after :suite do
    Process.kill("TERM", File.read("rack.pid").to_i)
  end
end

Version data entries

10 entries across 10 versions & 8 rubygems

Version Path
diabolo-webrat-0.5.1 spec/integration/mechanize/spec/spec_helper.rb
dstrelau-webrat-0.5.1 spec/integration/mechanize/spec/spec_helper.rb
kbaum-webrat-0.5.1 spec/integration/mechanize/spec/spec_helper.rb
radar-webrat-0.5.1.1 spec/integration/mechanize/spec/spec_helper.rb
radar-webrat-0.5.1 spec/integration/mechanize/spec/spec_helper.rb
mkuklis-webrat-0.5.1 spec/integration/mechanize/spec/spec_helper.rb
emipair-webrat-0.5.3 spec/integration/mechanize/spec/spec_helper.rb
honkster-webrat-0.6.0 spec/integration/mechanize/spec/spec_helper.rb
webrat-0.5.3 spec/integration/mechanize/spec/spec_helper.rb
webrat-0.5.1 spec/integration/mechanize/spec/spec_helper.rb