Sha256: b13b09c890282a4795261ecb0ef20a54070918c04dd02681b466d8c46d8aec8a
Contents?: true
Size: 666 Bytes
Versions: 3
Compression:
Stored size: 666 Bytes
Contents
require 'spec_helper' describe Humdrum do describe ".is_common?" do it "should return true if gmail" do email = "user@gmail.com" result = Humdrum.is_common?(email) result.should == true end it "should return true if aol" do email = "user@aol.com" result = Humdrum.is_common?(email) result.should == true end it "should return false if jibberish" do email = "user@wefwef.wef" result = Humdrum.is_common?(email) result.should == false end it "should return false if nil" do email = nil result = Humdrum.is_common?(email) result.should == false end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
humdrum-0.0.4 | spec/lib/humdrum_spec.rb |
humdrum-0.0.3 | spec/lib/humdrum_spec.rb |
humdrum-0.0.2 | spec/lib/humdrum_spec.rb |