Sha256: 35406ab293f850145761958b6f02366ce3ca1b4baf8e54a6ba2d12009c307f51
Contents?: true
Size: 592 Bytes
Versions: 1
Compression:
Stored size: 592 Bytes
Contents
require 'spec_helper' module PostcodeAnywhere::EmailValidation describe 'Validator Matcher' do context 'when Validator is defined' do subject { ::ValidatedClass.new } it { should validate_email_with_postcode_anywhere } it { should validate_email_with_postcode_anywhere.on_attribute(:email) } it { should_not validate_email_with_postcode_anywhere.on_attribute(:email_address) } end context 'when Validator is not defined' do subject { ::NotValidatedClass.new } it { should_not validate_email_with_postcode_anywhere } end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
postcode_anywhere-email_validation-0.0.4 | spec/lib/postcode_anywhere/matchers/email_validator_spec.rb |