Sha256: 941d74b6274e3e1ff5777f35db57174eaecabcc9687cbb1a527e2f831157dbc2
Contents?: true
Size: 447 Bytes
Versions: 2
Compression:
Stored size: 447 Bytes
Contents
require 'helper' describe Flipper::Gates::PercentageOfTime do let(:feature_name) { :search } subject { described_class.new } describe "#description" do context "when enabled" do it "returns text" do subject.description(22).should eq('22% of the time') end end context "when disabled" do it "returns disabled" do subject.description(0).should eq('disabled') end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
flipper-0.7.0.beta2 | spec/flipper/gates/percentage_of_time_spec.rb |
flipper-0.7.0.beta1 | spec/flipper/gates/percentage_of_time_spec.rb |