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 9c13e07 commit 596ca4a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions commonwatir/unittests/inspect_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,16 @@ def test_inspect_only_returns_url_and_title
end

def test_element_inspect
assert_match(%r{^#<.+::Em:0x[0-9a-f.]+ located=false how=:id what=/em-one/>$}, browser.em(:id, /em-one/).inspect)
assert_match(%r%^#<.+::Em:0x[0-9a-f.]+ located=false specifiers=\{:tag_name=>\["em"\], :id=>/em-one/\}>$%, browser.em(:id, /em-one/).inspect)

located = browser.em(:id, "em-one")
located.exists?

assert_match(%r{^#<.+::Em:0x[0-9a-f.]+ located=true how=:id what="em-one">$}, located.inspect)
assert_match(%r%^#<.+::Em:0x[0-9a-f.]+ located=true specifiers=\{:tag_name=>\["em"\], :id=>"em-one"\}>$%, located.inspect)
end

def test_element_collections_inspect
assert_match(%r{#<.+::Ems:0x[0-9a-f.]+ length=3 container=.+>$}, browser.ems.inspect)
assert_match(%r{#<.+::EmCollection:0x[0-9a-f.]+ length=3 container=.+>$}, browser.ems.inspect)
end

end
Expand Down

0 comments on commit 596ca4a

Please sign in to comment.