You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
550 B

13 years ago
require 'spec_helper'
describe Tld do
its ".lines" do
Tld.lines.should be_present
13 years ago
end
its ".include" do
10 years ago
Tld.include?('ro').should be_truthy
Tld.include?('lt').should be_truthy
Tld.include?('co.uk').should be_truthy
Tld.include?('com.au').should be_truthy
Tld.include?('ANYTHING.ar').should be_truthy
Tld.include?('pref.fukuoka.jp').should be_truthy
Tld.include?('any.toyama.jp').should be_truthy
13 years ago
10 years ago
Tld.include?('clyfe.ro').should be_falsey
Tld.include?('clyfe.zooz.lt').should be_falsey
13 years ago
end
end