spec/ruhl_spec.rb in ruhl-0.9.1 vs spec/ruhl_spec.rb in ruhl-0.9.2
- old
+ new
@@ -169,11 +169,11 @@
describe "hash.html" do
before do
@html = File.read html(:hash)
end
- it "have radio inputsi with proper attributes" do
+ it "have radio inputs with proper attributes" do
doc = create_doc
nodes = doc.xpath('/html/body/label//input')
nodes[0]['value'].should == 'doe'
nodes[1]['value'].should == 'joe'
nodes[2]['value'].should == 'smo'
@@ -197,9 +197,20 @@
@doc.xpath('/html/body/div//input')[1]['value'].should == "Doe"
end
it "email will be set" do
@doc.xpath('/html/body/div//input')[2]['value'].should == "jane@stonean.com"
+ end
+ end
+
+ describe "collection_of_strings.html" do
+ before do
+ @html = File.read html(:collection_of_strings)
+ end
+
+ it "will have the string values in the li's" do
+ doc = create_doc
+ puts doc.to_s
end
end
end