Module: VatIdValidator::Matchers

Defined in:
lib/rspec/matchers/validate_vat_id_of.rb

Overview

:nodoc:

Defined Under Namespace

Classes: ValidateVatIdOf

Instance Method Summary collapse

Instance Method Details

#validate_vat_id_of(expected) ⇒ Object

Ensure that the attribute is a vat id.

Examples:

it { should validate_vat_id_of(:tax_number) }


8
9
10
# File 'lib/rspec/matchers/validate_vat_id_of.rb', line 8

def validate_vat_id_of(expected)
  ValidateVatIdOf.new(expected)
end