Module: CapitalizeAttributes::Matchers

Defined in:
lib/capitalize_attributes/matchers.rb

Defined Under Namespace

Classes: CapitalizeAttributeMatcher

Instance Method Summary collapse

Instance Method Details

#capitalize_attribute(*attributes) ⇒ Object Also known as: capitalize_attributes

RSpec Examples:

it { is_expected.to capitalize_attribute(:first_name) }
it { is_expected.to capitalize_attributes(:first_name, :last_name) }
it { is_expected.not_to capitalize_attribute(:password) }
it { is_expected.not_to capitalize_attributes(:password, :encrypted_password) }


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

def capitalize_attribute(*attributes)
  CapitalizeAttributeMatcher.new(attributes)
end