Sha256: d384b75971c17d0f07f4d0e3b9df696a0c1e77cb95300ac9e86385c8ff79d585
Contents?: true
Size: 1.67 KB
Versions: 9
Compression:
Stored size: 1.67 KB
Contents
# encoding: utf-8 # This file is autogenerated. Do not edit it manually. # If you want change the content of this file, edit # # /spec/fixtures/responses/whois.nic.bo/status_registered.expected # # and regenerate the tests with the following rake task # # $ rake spec:generate # require 'spec_helper' require 'whois/record/parser/whois.nic.bo.rb' describe Whois::Record::Parser::WhoisNicBo, "status_registered.expected" do before(:each) do file = fixture("responses", "whois.nic.bo/status_registered.txt") part = Whois::Record::Part.new(:body => File.read(file)) @parser = klass.new(part) end describe "#domain" do it do @parser.domain.should == "google.bo" end end describe "#domain_id" do it do lambda { @parser.domain_id }.should raise_error(Whois::PropertyNotSupported) end end describe "#status" do it do @parser.status.should == :registered end end describe "#available?" do it do @parser.available?.should == false end end describe "#registered?" do it do @parser.registered?.should == true end end describe "#created_on" do it do @parser.created_on.should be_a(Time) @parser.created_on.should == Time.parse("2006-08-22") end end describe "#updated_on" do it do lambda { @parser.updated_on }.should raise_error(Whois::PropertyNotSupported) end end describe "#expires_on" do it do @parser.expires_on.should be_a(Time) @parser.expires_on.should == Time.parse("2011-08-22") end end describe "#nameservers" do it do lambda { @parser.nameservers }.should raise_error(Whois::PropertyNotSupported) end end end
Version data entries
9 entries across 9 versions & 1 rubygems