Sha256: 05dcf4ae66b61471f67d7e2e87c542fc61dfd96f90e6df2725f4ef9685d1bf33

Contents?: true

Size: 433 Bytes

Versions: 12

Compression:

Stored size: 433 Bytes

Contents

require 'spec_helper'

describe Heirloom::Utils::Email do
  before do
    @object = Object.new
    @object.extend Heirloom::Utils::Email
  end

  it "should return that the account is a valid email " do
    account = 'good@good.com'
    @object.valid_email?(account).should be_true
  end

  it "should return that the account is a valid email " do
    account = 'bad@bad'
    @object.valid_email?(account).should be_false
  end

end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
heirloom-0.12.7 spec/utils/email_spec.rb
heirloom-0.12.5 spec/utils/email_spec.rb
heirloom-0.12.4 spec/utils/email_spec.rb
heirloom-0.12.3 spec/utils/email_spec.rb
heirloom-0.12.2 spec/utils/email_spec.rb
heirloom-0.12.1 spec/utils/email_spec.rb
heirloom-0.12.0 spec/utils/email_spec.rb
heirloom-0.11.2 spec/utils/email_spec.rb
heirloom-0.11.1 spec/utils/email_spec.rb
heirloom-0.11.0 spec/utils/email_spec.rb
heirloom-0.11.0.beta.2 spec/utils/email_spec.rb
heirloom-0.11.0.beta.1 spec/utils/email_spec.rb