Sha256: 0b88f67b3a944d205b8b3ba0b57fb84c859cf5306830a2d549f5a5287a090004

Contents?: true

Size: 420 Bytes

Versions: 10

Compression:

Stored size: 420 Bytes

Contents

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

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

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

Version data entries

10 entries across 10 versions & 1 rubygems

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