spec/ruhl_spec.rb in ruhl-0.8.1 vs spec/ruhl_spec.rb in ruhl-0.8.2
- old
+ new
@@ -124,9 +124,21 @@
table.children[12].to_s.should == "NoMail"
table.children[13].to_s.should == "Man"
end
end
end
+
+ describe "loop.html" do
+ before do
+ @html = File.read html(:loop)
+ end
+
+ it "will be injected into layout.html" do
+ doc = create_doc( html(:loop) )
+ options = doc.xpath('/html/body/select//option')
+ options.children.length.should == @co.states_for_select.length
+ end
+ end
end