Sha256: 1d894eb3eb759b6d664076b209153e70967bc3108f5d2dcd50b863b02c76a116

Contents?: true

Size: 480 Bytes

Versions: 3

Compression:

Stored size: 480 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
end

Version data entries

3 entries across 3 versions & 3 rubygems

Version Path
davidtrogers-webrat-0.4.4.2 spec/integration/rails/test/integration/link_click_test.rb
diabolo-webrat-0.4.4.2 spec/integration/rails/test/integration/link_click_test.rb
raldred-webrat-0.4.4.2 spec/integration/rails/test/integration/link_click_test.rb