Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix test

  • Loading branch information...
commit 596ca4a1e53cbd209cb8c258be31ab3a2e188e5d 1 parent 9c13e07
@jarmo jarmo authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 commonwatir/unittests/inspect_test.rb
View
6 commonwatir/unittests/inspect_test.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.