Sha256: dd0be42c27ae0ac0a6fa43584c7b889fb7b165853caa462c7c30f571c9f6d699

Contents?: true

Size: 356 Bytes

Versions: 3

Compression:

Stored size: 356 Bytes

Contents

require "spec_helper"

describe Databox::Progress do

  let(:progress){ Databox::Progress.new "my_progress" }

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

    before do
      progress.set "33% done", 100, 33
    end

    it { expect(progress.save).to be_true }
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

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