Sha256: 6a14c990ee51652307b8067a1e8672b40ff237cd17e3f97344454062f10049bc
Contents?: true
Size: 846 Bytes
Versions: 3
Compression:
Stored size: 846 Bytes
Contents
require "tempfile" require "helper" describe Checkpoint do describe ".check" do context "with a proper request" do subject do described_class.check( product: "test", version: "1.0", ) end its(["alerts"]) { should be_empty } its(["current_version"]) { should eq("1.0") } its(["outdated"]) { should eq(false) } its(["product"]) { should eq("test") } end it "should cache things with cache_file" do tf = Tempfile.new("checkpoint") path = tf.path tf.close File.unlink(path) opts = { product: "test", version: "1.0", cache_file: path, } # Just run it twice c = described_class.check(opts) c = described_class.check(opts) expect(c["product"]).to eq("test") end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
hashicorp-checkpoint-0.1.3 | spec/checkpoint_spec.rb |
hashicorp-checkpoint-0.1.2 | spec/checkpoint_spec.rb |
hashicorp-checkpoint-0.1.1 | spec/checkpoint_spec.rb |