spec/spec_helper.rb in stonean-ruhl-0.1.0 vs spec/spec_helper.rb in stonean-ruhl-0.2.0
- old
+ new
@@ -6,10 +6,11 @@
def do_parse(html)
Nokogiri::HTML(html)
end
-def create_doc
- html = Ruhl::Engine.new(@html).render(self)
+def create_doc(layout = nil)
+ options = {:layout => layout}
+ html = Ruhl::Engine.new(@html, :layout => layout).render(self)
do_parse(html)
end