Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Matcher #1

Merged
merged 3 commits into from
Jul 29, 2013
Merged

Matcher #1

merged 3 commits into from
Jul 29, 2013

Conversation

pmanrubia
Copy link
Contributor

Motivation

Avoid RSpec duplication when testing presence of PostcodeAnywhere::EmailValidation::Validator in ActiveModel objects

Usage

When validating :email attribute:

  it { should validate_email_with_postcode_anywhere }

With custom attribute.

  it { should validate_email_with_postcode_anywhere.on_attribute(:email) }

@coveralls
Copy link

Coverage Status

Coverage decreased (-0%) when pulling 574a571 on matcher into de6e9eb on master.

novotnyjakub added a commit that referenced this pull request Jul 29, 2013
@novotnyjakub novotnyjakub merged commit 6b79166 into master Jul 29, 2013
@novotnyjakub novotnyjakub deleted the matcher branch July 29, 2013 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants