Sha256: c2718d65aef1e8495abe8e4ac501206bd39d8a133e7c3c225b879c06b0b8f390

Contents?: true

Size: 455 Bytes

Versions: 10

Compression:

Stored size: 455 Bytes

Contents

RSpec.describe Flipper::Expressions::NotEqual do
  describe "#call" do
    it "returns true when not equal" do
      expect(described_class.call("basic", "plus")).to be(true)
    end

    it "returns false when equal" do
      expect(described_class.call("basic", "basic")).to be(false)
    end

    it "raises ArgumentError for more arguments" do
      expect { described_class.call(20, 10, 20).evaluate }.to raise_error(ArgumentError)
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

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