Sha256: b5290dfcbb3af1fc9e70e4942b713575876a6cba03d849fde6f99d0adfeaaf99

Contents?: true

Size: 564 Bytes

Versions: 1

Compression:

Stored size: 564 Bytes

Contents

require 'support'
require 'mustermann/pattern'

describe Mustermann::Pattern do
  it 'raises a NotImplementedError when used directly' do
    expect { described_class.new("") === "" }.to raise_error(NotImplementedError)
  end

  it 'raises an ArgumentError for unknown options' do
    expect { described_class.new("", foo: :bar) }.to raise_error(ArgumentError)
  end

  it 'does not complain about unknown options if ignore_unknown_options is enabled' do
    expect { described_class.new("", foo: :bar, ignore_unknown_options: true) }.not_to raise_error
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mustermann-0.0.1 spec/pattern_spec.rb