Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 4237692085
Fetching contributors…

Cannot retrieve contributors at this time

15 lines (12 sloc) 0.465 kB
require File.expand_path(File.join(File.dirname(__FILE__), "spec_helper"))
describe "Attributes" do
it "<[foo]> should return a list of all nodes with the attribute" do
HTML.should have_nodes("[foo]", 4)
end
it "<*[foo]> should return a list of all nodes with the attribute" do
HTML.should have_nodes("*[foo]", 4)
end
it "<E[foo]> should return a list of all nodes with the attribute" do
HTML.should have_nodes("span[foo]", 3)
end
end
Jump to Line
Something went wrong with that request. Please try again.