Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 4237692085
Fetching contributors…

Cannot retrieve contributors at this time

15 lines (12 sloc) 0.492 kb
require File.expand_path(File.join(File.dirname(__FILE__), "spec_helper"))
describe "Attributes" do
it "<[foo=bar]> should return a list of all nodes with the attribute" do
HTML.should have_nodes("[foo=bar]", 1)
end
it "<[foo='bar']> should return a list of all nodes with the attribute" do
HTML.should have_nodes("[foo='bar']", 1)
end
it "<[foo=\"bar\"]> should return a list of all nodes with the attribute" do
HTML.should have_nodes("[foo=\"bar\"]", 1)
end
end
Jump to Line
Something went wrong with that request. Please try again.