Sha256: 9f7d555731ae65dac13d31959b2d48ce93a30e625e398b0a4f483c906a6821e4

Contents?: true

Size: 695 Bytes

Versions: 10

Compression:

Stored size: 695 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

10 entries across 10 versions & 1 rubygems

Version Path
Active-0.0.32 spec/validators_spec.rb
Active-0.0.31 spec/validators_spec.rb
Active-0.0.30 spec/validators_spec.rb
Active-0.0.29 spec/validators_spec.rb
Active-0.0.28 spec/validators_spec.rb
Active-0.0.27 spec/validators_spec.rb
Active-0.0.26 spec/validators_spec.rb
Active-0.0.25 spec/validators_spec.rb
Active-0.0.24 spec/validators_spec.rb
Active-0.0.23 spec/validators_spec.rb