Sha256: f91667798e111d3ff4754bce150df70fe8e1ea269f73825d9839c69a25743300
Contents?: true
Size: 713 Bytes
Versions: 4
Compression:
Stored size: 713 Bytes
Contents
require 'spec_helper' describe GoogleVisualr::BaseChart do before do @dt = data_table @chart = base_chart(@dt) end describe "#initialize" do it "works" do @chart.data_table.should == @dt @chart.options.should == { "legend" => "Test Chart", "width" => 800, "is3D" => true } end end describe "#options=" do it "works" do @chart.options = { :legend => "Awesome Chart", :width => 1000, :is3D => false } @chart.options.should == { "legend" => "Awesome Chart", "width" => 1000, "is3D" => false } end end describe "#to_js" do it "generates JS" do js = @chart.to_js("body") js.should == base_chart_js("body") end end end
Version data entries
4 entries across 4 versions & 1 rubygems