Sha256: d4e64fa19acd41d1752df08faa463e550316cc14d1fb22dabdf02366cd60249b

Contents?: true

Size: 467 Bytes

Versions: 7

Compression:

Stored size: 467 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe Function::Predicate::NoMatch, '.call' do
  subject { object.call(left, right) }

  let(:object) { described_class }

  context 'when right regexp matches left' do
    let(:left)  { 'Dan Kubb' }
    let(:right) { /Dan Kubb/ }

    it { should be(false) }
  end

  context 'when right regexp does not match left' do
    let(:left)  { 'Alex Kubb' }
    let(:right) { /Dan Kubb/  }

    it { should be(true) }
  end
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
axiom-0.2.0 spec/unit/axiom/function/predicate/no_match/class_methods/call_spec.rb
axiom-0.1.1 spec/unit/axiom/function/predicate/no_match/class_methods/call_spec.rb
axiom-0.1.0 spec/unit/axiom/function/predicate/no_match/class_methods/call_spec.rb
veritas-0.0.7 spec/unit/veritas/function/predicate/no_match/class_methods/call_spec.rb
veritas-0.0.6 spec/unit/veritas/function/predicate/no_match/class_methods/call_spec.rb
veritas-0.0.5 spec/unit/veritas/function/predicate/no_match/class_methods/call_spec.rb
veritas-0.0.4 spec/unit/veritas/function/predicate/no_match/class_methods/call_spec.rb