Created
April 8, 2009 14:30
-
-
Save HusseinMorsy/91798 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "rubygems" | |
require "webrat" | |
require 'spec' | |
include Webrat::Matchers | |
output = " | |
<h1>Hallo Welt<h1> | |
<p>lorem</p> | |
<a name='demo' /> | |
" | |
puts "test a" | |
output.should have_selector("a", :name => "demo") | |
# => no output, no error | |
puts "test h1" | |
output.should have_selector("h1", :class => "main") | |
# =>expectation error |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment