test/test-assertions.rb in test-unit-capybara-1.0.7 vs test/test-assertions.rb in test-unit-capybara-1.0.8

- old
+ new

@@ -165,11 +165,11 @@ def test_fail_no_context visit("/") h1_html = @html.scan(/<h1>.*?<\/h1>/m)[0] message = <<-EOM.strip -<"h1">(:css) expected to not find a element but was +<"h1">(:css) expected to not find an element but was <#{h1_html}> in <#{@html}> EOM exception = Test::Unit::AssertionFailedError.new(message) assert_raise(exception) do @@ -180,11 +180,11 @@ def test_fail_in_context visit("/") section_html = @html.scan(/<div class="section">.*?<\/div>/m)[0] h2_in_section_html = section_html.scan(/<h2>.*?<\/h2>/m)[0] message = <<-EOM.strip -<"h2">(:css) expected to not find a element but was +<"h2">(:css) expected to not find an element but was <#{h2_in_section_html}> in <#{section_html}> EOM exception = Test::Unit::AssertionFailedError.new(message) within("div.section") do @@ -218,10 +218,10 @@ visit("/") section = find("div.section") section_html = @html.scan(/<div class="section">.*?<\/div>/m)[0] h2_html = section_html.scan(/<h2>.*?<\/h2>/m)[0] message = <<-EOM.strip -<"h2">(:css) expected to not find a element but was +<"h2">(:css) expected to not find an element but was <#{h2_html}> in <#{section_html}> EOM exception = Test::Unit::AssertionFailedError.new(message) assert_raise(exception) do