Sha256: f262fcc666acdce3f1f630256298dd435a688152f9ef1b958238969eea0a898b
Contents?: true
Size: 1.03 KB
Versions: 1
Compression:
Stored size: 1.03 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-se.se/property_datetime_is_dash.expected # # and regenerate the tests with the following rake task # # $ rake genspec:parsers # require 'spec_helper' require 'whois/record/parser/whois.nic-se.se.rb' describe Whois::Record::Parser::WhoisNicSeSe, "property_datetime_is_dash.expected" do before(:each) do file = fixture("responses", "whois.nic-se.se/property_datetime_is_dash.txt") part = Whois::Record::Part.new(:body => File.read(file)) @parser = klass.new(part) end context "#created_on" do it do @parser.created_on.should be_a(Time) @parser.created_on.should == Time.parse("2010-08-05") end end context "#updated_on" do it do @parser.updated_on.should == nil end end context "#expires_on" do it do @parser.expires_on.should be_a(Time) @parser.expires_on.should == Time.parse("2011-08-05") end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
whois-2.0.4 | spec/whois/record/parser/responses/whois.nic-se.se/property_datetime_is_dash_spec.rb |