Sha256: 7daa474414b6feeba3cbeb251b35d1f98bd9d24a763fce9ea76af138e15b1d1c

Contents?: true

Size: 472 Bytes

Versions: 4

Compression:

Stored size: 472 Bytes

Contents

# frozen_string_literal: true

require 'dry/logic/predicates'

RSpec.describe Dry::Logic::Predicates, '#not_eql?' do
  let(:predicate_name) { :not_eql? }

  context 'when value is equal to the arg' do
    let(:arguments_list) do
      [['Foo', 'Foo']]
    end

    it_behaves_like 'a failing predicate'
  end

  context 'with value is not equal to the arg' do
    let(:arguments_list) do
      [['Bar', 'Foo']]
    end

    it_behaves_like 'a passing predicate'
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
dry-logic-1.0.5 spec/unit/predicates/not_eql_spec.rb
dry-logic-1.0.4 spec/unit/predicates/not_eql_spec.rb
dry-logic-1.0.3 spec/unit/predicates/not_eql_spec.rb
dry-logic-1.0.2 spec/unit/predicates/not_eql_spec.rb