Skip to content
This repository has been archived by the owner on Jun 6, 2018. It is now read-only.

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
jarmo committed Mar 12, 2012
1 parent 6297e11 commit 45932bf
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions watir/unittests/links_multi_test.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -31,18 +31,4 @@ def test_class_and_index
assert_match(/papa.html/, browser.link(:class => 'Papa', :index => 1).href) assert_match(/papa.html/, browser.link(:class => 'Papa', :index => 1).href)
end end


def test_not_found_single
exception = assert_raise(UnknownObjectException) do
browser.link(:id, 'Missing').href
end
assert_equal('Unable to locate element, using :id, "Missing"', exception.message)
end

def test_not_found_with_multi
exception = assert_raise(UnknownObjectException) do
browser.link(:class => 'Missing', :index => 1).href
end
assert_equal('Unable to locate element, using {:class=>"Missing", :index=>1}', exception.message)
end

end end

0 comments on commit 45932bf

Please sign in to comment.