Sha256: 1ce8cc644800749325ef68e285a02f8dad1478ec550ae69540e3a0705bd83e6c
Contents?: true
Size: 970 Bytes
Versions: 3
Compression:
Stored size: 970 Bytes
Contents
# frozen_string_literal: true describe Sail, type: :lib do describe ".get" do subject { described_class.get("name") } it "delegates to setting" do expect(Sail::Setting).to receive(:get).with("name") subject end end describe ".set" do subject { described_class.set("name", "value") } it "delegates to setting" do expect(Sail::Setting).to receive(:set).with("name", "value") subject end end describe ".switcher" do subject { described_class.switcher(positive: "positive", negative: "negative", throttled_by: "throttle") } it "delegates to setting" do expect(Sail::Setting).to receive(:switcher).with(positive: "positive", negative: "negative", throttled_by: "throttle") subject end end describe ".reset" do subject { described_class.reset("name") } it "delegates to setting" do expect(Sail::Setting).to receive(:reset).with("name") subject end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
sail-2.1.1 | spec/sail_spec.rb |
sail-2.1.0 | spec/sail_spec.rb |
sail-2.0.0 | spec/sail_spec.rb |