Sha256: 687d12366684effbb415a8bbb0b4b4609fe8c933235cd500037501bd6b8ad34a

Contents?: true

Size: 424 Bytes

Versions: 10

Compression:

Stored size: 424 Bytes

Contents

RSpec.describe Flipper::Expressions::Any do
  describe "#call" do
    it "returns true if any args evaluate as true" do
      expect(described_class.call(true, false)).to be(true)
    end

    it "returns false if all args evaluate as false" do
      expect(described_class.call(false, false)).to be(false)
    end

    it "returns false with empty args" do
      expect(described_class.call).to be(false)
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
flipper-1.3.2 spec/flipper/expressions/any_spec.rb
flipper-1.3.1 spec/flipper/expressions/any_spec.rb
flipper-1.3.0 spec/flipper/expressions/any_spec.rb
flipper-1.3.0.pre spec/flipper/expressions/any_spec.rb
flipper-1.2.2 spec/flipper/expressions/any_spec.rb
flipper-1.2.1 spec/flipper/expressions/any_spec.rb
flipper-1.2.0 spec/flipper/expressions/any_spec.rb
flipper-1.1.2 spec/flipper/expressions/any_spec.rb
flipper-1.1.1 spec/flipper/expressions/any_spec.rb
flipper-1.1.0 spec/flipper/expressions/any_spec.rb