Sha256: 4cdb821e87e90d3d1bea58275bd18e98e58b9c2161364bb838d6c0c2cd52b30f

Contents?: true

Size: 574 Bytes

Versions: 4

Compression:

Stored size: 574 Bytes

Contents

require "spec_helper"

describe Databox::Funnel do

  before do
    Databox.configure do |c|
      c.token   = "218oxlmk3ikkogo0"
      c.key = "3s70rekrhcmcgkccssckc448kgw04ssk"
    end
  end

  let(:funnel){ Databox::Funnel.new "little_funnel" }

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

    before do
      funnel.add "Requests sent",   2000
      funnel.add "New Accounts",    1600
      funnel.add "Viewed results",  999
    end

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

  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
databox-0.1.2 spec/databox/funnel_spec.rb
databox-0.1.1 spec/databox/funnel_spec.rb
databox-0.1.0 spec/databox/funnel_spec.rb
databox-0.0.3 spec/databox/funnel_spec.rb