Sha256: a01343a827d663a51edab9341dbac92265d7096aea345125ac7dbc81fde38b13

Contents?: true

Size: 423 Bytes

Versions: 10

Compression:

Stored size: 423 Bytes

Contents

RSpec.describe Flipper::Expressions::Boolean do
  describe "#call" do
    [true, 'true', 1, '1'].each do |value|
      it "returns a true for #{value.inspect}" do
        expect(described_class.call(value)).to be(true)
      end
    end

    [false, 'false', 0, '0', nil].each do |value|
      it "returns a true for #{value.inspect}" do
        expect(described_class.call(value)).to be(false)
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

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