Sha256: 6c3ece3d1410a2b34f20be8514404eea0916db1d1440995724b06e8f4bce40e1

Contents?: true

Size: 416 Bytes

Versions: 7

Compression:

Stored size: 416 Bytes

Contents

require 'amcharts/chart'

describe AmCharts::Chart do
  describe "#dimensions" do
    context "setting width and height with the same assignment" do
      before { subject.dimensions = "800x600" }

      its(:width) { should == 800 }
      its(:height) { should == 600 }
    end

    context "not setting width and height" do
      its(:width) { should be_nil }
      its(:height) { should be_nil }
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
amcharts.rb-3.4.7.0 spec/chart_spec.rb
amcharts.rb-3.2.0.2 spec/chart_spec.rb
amcharts.rb-3.2.0.1 spec/chart_spec.rb
amcharts.rb-3.2.0.0 spec/chart_spec.rb
amcharts.rb-3.1.1.3 spec/chart_spec.rb
amcharts.rb-3.1.1.1 spec/chart_spec.rb
amcharts.rb-3.1.1.0 spec/chart_spec.rb