Sha256: 0fd6279d4099c447d9a42f69e58c7a7e97ec6e3d650a143e90195abd3f57b581

Contents?: true

Size: 462 Bytes

Versions: 1

Compression:

Stored size: 462 Bytes

Contents

require 'spec_helper'

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

  let(:object) { Logic::Predicate::NoMatch }

  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

1 entries across 1 versions & 1 rubygems

Version Path
veritas-0.0.2 spec/unit/veritas/logic/predicate/no_match/class_methods/call_spec.rb