Sha256: aa633e153732a85c7e74a3d33d7f5666005d0d51fdde0b57836e372fde1ae1df

Contents?: true

Size: 422 Bytes

Versions: 12

Compression:

Stored size: 422 Bytes

Contents

require 'dry/logic/predicates'

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

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

    it_behaves_like 'a passing predicate'
  end

  context 'with value is not empty' do
    let(:arguments_list) do
      [['Bar', 'Foo']]
    end

    it_behaves_like 'a failing predicate'
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
dry-logic-0.4.1 spec/unit/predicates/eql_spec.rb
dry-logic-0.4.0 spec/unit/predicates/eql_spec.rb
dry-logic-0.3.0 spec/unit/predicates/eql_spec.rb
dry-logic-0.2.3 spec/unit/predicates/eql_spec.rb
dry-logic-0.2.2 spec/unit/predicates/eql_spec.rb
dry-logic-0.2.1 spec/unit/predicates/eql_spec.rb
dry-logic-0.2.0 spec/unit/predicates/eql_spec.rb
dry-logic-0.1.4 spec/unit/predicates/eql_spec.rb
dry-logic-0.1.3 spec/unit/predicates/eql_spec.rb
dry-logic-0.1.2 spec/unit/predicates/eql_spec.rb
dry-logic-0.1.1 spec/unit/predicates/eql_spec.rb
dry-logic-0.1.0 spec/unit/predicates/eql_spec.rb