Sha256: 6d8ac959baed56fdc30ab18eb87ce716eda77b8a607b251b85fc9ed67b046fb0

Contents?: true

Size: 505 Bytes

Versions: 2

Compression:

Stored size: 505 Bytes

Contents

require 'helper'

describe Flipper::Gates::Actor do
  let(:feature_name) { :search }

  subject {
    described_class.new
  }

  describe "#description" do
    context "with actors in set" do
      it "returns text" do
        values = Set['bacon', 'ham']
        subject.description(values).should eq('actors ("bacon", "ham")')
      end
    end

    context "with no actors in set" do
      it "returns disabled" do
        subject.description(Set.new).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/actor_spec.rb
flipper-0.7.0.beta1 spec/flipper/gates/actor_spec.rb