Sha256: e83ee0a15aa0898e857a486ae523673a0d57be72c8497f86a96534ccbdd52f5c
Contents?: true
Size: 737 Bytes
Versions: 10
Compression:
Stored size: 737 Bytes
Contents
RSpec.describe Flipper::Expressions::Equal do describe "#call" do it "returns true when equal" do expect(described_class.call("basic", "basic")).to be(true) end it "returns false when not equal" do expect(described_class.call("basic", "plus")).to be(false) end it "returns false when value evaluates to nil" do expect(described_class.call(nil, 1)).to be(false) expect(described_class.call(1, nil)).to be(false) end it "raises ArgumentError with no arguments" do expect { described_class.call }.to raise_error(ArgumentError) end it "raises ArgumentError with one argument" do expect { described_class.call(10) }.to raise_error(ArgumentError) end end end
Version data entries
10 entries across 10 versions & 1 rubygems