Sha256: e5c9f4def91cf5479537d168fc6e301e7f1551471c64f3704061aec6913e084f

Contents?: true

Size: 688 Bytes

Versions: 9

Compression:

Stored size: 688 Bytes

Contents

# Require the spec helper relative to this file
require File.join(File.dirname(__FILE__), %w[spec_helper])
require File.join(File.dirname(__FILE__), %w[custom_matchers_spec])
require File.join(File.dirname(__FILE__), %w[ .. lib services search])
require File.join(File.dirname(__FILE__), %w[ .. lib services activity])
include Active
include Active::Services


describe Validators do

  it "should find a valid email address" do
    Validators.email("Jeremy.Sheppard@co.kent.de.u").should be_true
    Validators.email("diney.bom-fim_23db@google.com").should be_true
    Validators.email("jspooner@gmail.com").should be_true
    Validators.email("jspooner@ga").should be_false
  end
  
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
Active-0.0.42 spec/validators_spec.rb
Active-0.0.41 spec/validators_spec.rb
Active-0.0.40 spec/validators_spec.rb
Active-0.0.39 spec/validators_spec.rb
Active-0.0.38 spec/validators_spec.rb
Active-0.0.37 spec/validators_spec.rb
Active-0.0.36 spec/validators_spec.rb
Active-0.0.35 spec/validators_spec.rb
Active-0.0.34 spec/validators_spec.rb