Sha256: 08fde0926de75fec7803efa7c201846d2b07d566d283147831c919464713cf81

Contents?: true

Size: 655 Bytes

Versions: 26

Compression:

Stored size: 655 Bytes

Contents

require 'test_helper'

class LinkClickTest < ActionController::IntegrationTest
  test "should click link by text" do
    visit links_path
    click_link "LinkByText"
    assert_contain("Link:LinkByText")
  end

  test "should click link by id" do
    visit links_path
    click_link "link_by_id"
    assert_contain("Link:link_by_id")
  end

  test "should click link by title" do
    visit links_path
    click_link "LinkByTitle"
    assert_contain("Link:LinkByTitle")
  end

  test "should be able to click links with non letter characters" do
    visit links_path
    click_link "Link With (parens)"
    assert_contain("Link:link_with_parens")
  end
end

Version data entries

26 entries across 26 versions & 9 rubygems

Version Path
diabolo-webrat-0.5.1 spec/integration/rails/test/integration/link_click_test.rb
dstrelau-webrat-0.5.1 spec/integration/rails/test/integration/link_click_test.rb
emipair-webrat-0.0.1 spec/integration/rails/test/integration/link_click_test.rb
hardbap-webrat-0.5.1 spec/integration/rails/test/integration/link_click_test.rb
hardbap-webrat-0.5.2 spec/integration/rails/test/integration/link_click_test.rb
winton-sum-0.1.0 vendor/webrat/spec/integration/rails/test/integration/link_click_test.rb
winton-sum-0.1.1 vendor/webrat/spec/integration/rails/test/integration/link_click_test.rb
kbaum-webrat-0.5.1 spec/integration/rails/test/integration/link_click_test.rb
sum-0.1.1 vendor/webrat/spec/integration/rails/test/integration/link_click_test.rb
emipair-webrat-0.5.3 spec/integration/rails/test/integration/link_click_test.rb
webrat-0.5.3 spec/integration/rails/test/integration/link_click_test.rb
webrat-0.5.1 spec/integration/rails/test/integration/link_click_test.rb
webrat-0.4.5 spec/integration/rails/test/integration/link_click_test.rb
webrat-0.5.0 spec/integration/rails/test/integration/link_click_test.rb
metry-2.0.4 vendor/webrat/spec/integration/rails/test/integration/link_click_test.rb
metry-2.0.5 vendor/webrat/spec/integration/rails/test/integration/link_click_test.rb
metry-2.1.0 vendor/webrat/spec/integration/rails/test/integration/link_click_test.rb
metry-2.1.1 vendor/webrat/spec/integration/rails/test/integration/link_click_test.rb
metry-2.0.0 vendor/webrat/spec/integration/rails/test/integration/link_click_test.rb
metry-2.0.1 vendor/webrat/spec/integration/rails/test/integration/link_click_test.rb