Sha256: ca678caddb23767b9b71375b3efafd0b3801cca5ca35bd3cffbafedfcf8fb35d

Contents?: true

Size: 432 Bytes

Versions: 6

Compression:

Stored size: 432 Bytes

Contents

require 'dry/validation/predicates'

RSpec.describe Dry::Validation::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

6 entries across 6 versions & 1 rubygems

Version Path
dry-validation-0.4.1 spec/unit/predicates/eql_spec.rb
dry-validation-0.4.0 spec/unit/predicates/eql_spec.rb
dry-validation-0.3.1 spec/unit/predicates/eql_spec.rb
dry-validation-0.3.0 spec/unit/predicates/eql_spec.rb
dry-validation-0.2.0 spec/unit/predicates/eql_spec.rb
dry-validation-0.1.0 spec/unit/predicates/eql_spec.rb