spec/domainatrix/url_spec.rb in domainatrix-0.0.3 vs spec/domainatrix/url_spec.rb in domainatrix-0.0.4
- old
+ new
@@ -1,7 +1,11 @@
require File.dirname(__FILE__) + '/../spec_helper'
describe "url" do
+ it "has the original url" do
+ Domainatrix::Url.new(:url => "http://pauldix.net").url.should == "http://pauldix.net"
+ end
+
it "has the tld" do
Domainatrix::Url.new(:tld => "net").tld.should == "net"
end
it "has the domain" do