Sha256: ad6c4136bb482df328b5f5c6d88aa11590e56c496b23dba59d97acd6e397bcb0

Contents?: true

Size: 413 Bytes

Versions: 3

Compression:

Stored size: 413 Bytes

Contents

require "spec_helper"

describe Databox::BarChart do

  let(:chart){ Databox::BarChart.new "my_bar" }

  context "simple" do
    before {
      stub_request(:post, /push/)
      .to_return { request_from "bar_chart_simple" }
    }

    before do
      chart.add 2000, "2014-01-29"
      chart.add 1600, "2014-02-01"
      chart.add 999,  "2014-02-03"
    end

    it { expect(chart.save).to be_true }

  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
databox-0.1.2 spec/databox/bar_chart_spec.rb
databox-0.1.1 spec/databox/bar_chart_spec.rb
databox-0.1.0 spec/databox/bar_chart_spec.rb