Sha256: 8f127c79238b5c436f27fb0792989182127162a3cd4c0b4531a6539b546a9c99
Contents?: true
Size: 1.03 KB
Versions: 9
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 spec:generate # 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 describe "#created_on" do it do @parser.created_on.should be_a(Time) @parser.created_on.should == Time.parse("2010-08-05") end end describe "#updated_on" do it do @parser.updated_on.should == nil end end describe "#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
9 entries across 9 versions & 1 rubygems