Module: NormalizeDigits::Matchers

Defined in:
lib/normalize_digits/matchers.rb

Overview

Matcher Module

Defined Under Namespace

Classes: NormalizeDigitsForMatcher

Instance Method Summary collapse

Instance Method Details

#normalize_digits_for(attribute) ⇒ Object

RSpec Examples:

it { is_expected.to normalize_digits_for(:phone_number) }
it { is_expected.not_to normalize_digits_for(:password) }


10
11
12
# File 'lib/normalize_digits/matchers.rb', line 10

def normalize_digits_for(attribute)
  NormalizeDigitsForMatcher.new(attribute)
end