Sha256: 8b054a6710fd9fef561d332be059ac785988aa00e6bc8b5be60400d5d6987b56
Contents?: true
Size: 431 Bytes
Versions: 2
Compression:
Stored size: 431 Bytes
Contents
require 'spec_helper' require 'valid_email/all_with_extensions' describe String do it { "mymail@gmail".should respond_to(:email?) } it "is a valid e-mail" do "mymail@gmail.com".email?.should be_truthy end it "is not valid when text is not a real e-mail" do "invalidMail".email?.should be_falsey end context "when nil" do it "is invalid e-mail" do nil.email?.should be_falsey end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
valid_email-0.0.11 | spec/extensions_validator_spec.rb |
valid_email-0.0.10 | spec/extensions_validator_spec.rb |