Sha256: 3b1598576666d8ab27bf6c637648f8d3a822e11168a59ae4dc9f1c91ed86428f
Contents?: true
Size: 1.35 KB
Versions: 11
Compression:
Stored size: 1.35 KB
Contents
require File.expand_path(File.join(File.dirname(__FILE__), %w[.. spec_helper])) describe Ziya::Helpers::BaseHelper do it "should generate the correct chart path" do chart_url( "http://test.me.com/blee" ).should == "/charts/charts.swf?library_path=/charts/charts_library&xml_source=http%3A%2F%2Ftest.me.com%2Fblee" chart_url( "http://test.me.com/blee", "/blees" ).should == "/blees/charts.swf?library_path=/blees/charts_library&xml_source=http%3A%2F%2Ftest.me.com%2Fblee" end it "should generate the correct yaml class name" do component( "fred" ).should == "fred: !ruby/object:Ziya::Components::Fred" end it "should generate the correct yaml clqss name for alias" do comp( "fred" ).should == "fred: !ruby/object:Ziya::Components::Fred" end it "should generate the correct yaml drawing class name" do drawing( "fred" ).should == "!ruby/object:Ziya::Components::Fred" end it "should generate the correct yaml chart class name" do chart( "fred" ).should == "--- !ruby/object:Ziya::Charts::Fred" end it "should generate the correct yaml for a gauge" do gauge( "fred" ).should == "--- !ruby/object:Ziya::Gauges::Fred\ncomponents: !omap" end it "should generate the correct yaml for a dial" do dial( :circle, :blee ).should == "- :blee: !ruby/object:Ziya::Gauges::Support::Circle" end end
Version data entries
11 entries across 11 versions & 2 rubygems