Sha256: c73194a31a4487e631219fc62f5b483a362cdb18fe256f4c5c1ddd092f2731cf
Contents?: true
Size: 603 Bytes
Versions: 3
Compression:
Stored size: 603 Bytes
Contents
require File.join(File.dirname(__FILE__), "..", "..", "spec_helper.rb") describe Smoke::Output::XML do before do @tree = "tree" @items = [{:animal => "monkey"}] @xml = Smoke::Output::XML.generate(@tree, @items) @document = Nokogiri::XML(@xml) end it "should respond to generate" do Smoke::Output::XML.should respond_to(:generate) end it "should start the tree off with a named key" do @document.css("tree").should_not be_nil end it "should contain items" do @document.css("items").each do |item| item.content.should =~ /monkey/ end end end
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
benschwarz-smoke-0.5.13 | spec/smoke/output/xml_spec.rb |
smoke-0.5.13 | spec/smoke/output/xml_spec.rb |
smoke-0.5.12 | spec/smoke/output/xml_spec.rb |