Sha256: 8f45dc794d0fbc1cd5ebbfd653f87b87f15c87d419a95726cebdf4a56b0e1ace
Contents?: true
Size: 644 Bytes
Versions: 2
Compression:
Stored size: 644 Bytes
Contents
require File.join(File.dirname(__FILE__), "..", "..", "spec_helper.rb") describe Smoke::Output::XML do before do @tree = :tree @items = [{:animal => "monkey", :mammal => true}, {:animal => "elephant"}] @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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
smoke-0.5.15 | spec/smoke/output/xml_spec.rb |
smoke-0.5.14 | spec/smoke/output/xml_spec.rb |