require File.expand_path(File.join(File.dirname(__FILE__), %w[.. spec_helper])) describe Ziya::Gauges::Base do describe "#initialize" do before( :each ) do @gauge = Ziya::Gauges::Base.new( "test_license", "test" ) end it "should create a gauge with the correct license" do @gauge.license.should == "test_license" end it "should create a gauge with the correct id" do @gauge.design_id.should == "test" end end describe "#to_xml" do it "should produce the correct xml for a basic gauge" do gauge = Ziya::Gauges::Base.new( "aaa", "gauge_1" ) buff = gauge.to_xml buff.scan( / "/blee/fred" ) buff = gauge.to_xml buff.scan( /