Sha256: 470a9630e7d3cc56ab6557ab5dcad706956ee599ca58f425be74d3dc59f8186d

Contents?: true

Size: 590 Bytes

Versions: 21

Compression:

Stored size: 590 Bytes

Contents

require File.dirname(__FILE__) + "/spec_helper"

describe "Webrat's Mechanize mode" do
  it "should work" do
    response = visit("http://localhost:9292/")
    response.should contain("Hello World")
  end

  it "should follow redirects" do
    response = visit("http://localhost:9292/internal_redirect")
    response.should contain("Redirected")
  end

  it "should follow links"
  it "should submit forms"
  it "should not follow external redirects" do
    pending do
      response = visit("http://localhost:9292/external_redirect")
      response.should contain("Foo")
    end
  end
end

Version data entries

21 entries across 21 versions & 12 rubygems

Version Path
diabolo-webrat-0.5.1 spec/integration/mechanize/spec/mechanize_spec.rb
dstrelau-webrat-0.5.1 spec/integration/mechanize/spec/mechanize_spec.rb
revo-webrat-0.7.0.1 spec/integration/mechanize/spec/mechanize_spec.rb
davidtrogers-webrat-0.7.0 spec/integration/mechanize/spec/mechanize_spec.rb
revo-webrat-0.7.0 spec/integration/mechanize/spec/mechanize_spec.rb
revo-webrat-0.7.1.pre spec/integration/mechanize/spec/mechanize_spec.rb
webrat-0.7.0 spec/integration/mechanize/spec/mechanize_spec.rb
honkster-webrat-0.6.0.10 spec/integration/mechanize/spec/mechanize_spec.rb
honkster-webrat-0.6.0.9 spec/integration/mechanize/spec/mechanize_spec.rb
darkofabijan-webrat-0.6.1 spec/integration/mechanize/spec/mechanize_spec.rb
kbaum-webrat-0.5.1 spec/integration/mechanize/spec/mechanize_spec.rb
kbaum-webrat-0.6.1.pre spec/integration/mechanize/spec/mechanize_spec.rb
cynergy-webrat-0.6.0 spec/integration/mechanize/spec/mechanize_spec.rb
webrat-0.6.0 spec/integration/mechanize/spec/mechanize_spec.rb
radar-webrat-0.5.1.1 spec/integration/mechanize/spec/mechanize_spec.rb
radar-webrat-0.5.1 spec/integration/mechanize/spec/mechanize_spec.rb
mkuklis-webrat-0.5.1 spec/integration/mechanize/spec/mechanize_spec.rb
emipair-webrat-0.5.3 spec/integration/mechanize/spec/mechanize_spec.rb
honkster-webrat-0.6.0 spec/integration/mechanize/spec/mechanize_spec.rb
webrat-0.5.3 spec/integration/mechanize/spec/mechanize_spec.rb