Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Update fixtures

  • Loading branch information...
commit 358e06e98c743e951f4ffe13b27ce166ffc4d042 1 parent c80d35c
@weppos authored
View
1  lib/whois/record/parser/whois.nic.ec.rb
@@ -8,6 +8,7 @@
require 'whois/record/parser/base'
+require 'whois/record/parser/base_cocca'
module Whois
View
10 spec/fixtures/responses/whois.nic.ec/status_registered.expected
@@ -1,5 +1,5 @@
#domain
- %s == "google.as"
+ %s == "google.ec"
#domain_id
%s %ERROR{AttributeNotSupported}
@@ -17,15 +17,15 @@
#created_on
%s %CLASS{time}
- %s %TIME{2003-10-16 00:00:00 UTC}
+ %s %TIME{2003-10-16 00:00:00}
#updated_on
%s %CLASS{time}
- %s %TIME{2013-09-17 00:00:00 UTC}
+ %s %TIME{2013-09-17 00:00:00}
#expires_on
%s %CLASS{time}
- %s %TIME{2014-10-16 00:00:00 UTC}
+ %s %TIME{2014-10-16 00:00:00}
#registrar
@@ -33,7 +33,7 @@
%s.id == nil
%s.name == "MarkMonitor Inc."
%s.organization == nil
- %s.url == nil
+ %s.url == "www.markmonitor.com"
#nameservers
View
2  spec/fixtures/responses/whois.nic.travel/property_status_single.expected
@@ -1,2 +1,2 @@
#status
- %s == "ok"
+ %s == ["ok"]
View
2  spec/fixtures/responses/whois.nic.travel/status_registered.expected
@@ -6,7 +6,7 @@
#status
- %s == "ok"
+ %s == ["ok"]
#available?
%s == false
View
2  spec/fixtures/responses/whois.registry.in/status_registered.expected
@@ -23,7 +23,7 @@
%s %TIME{2005-02-14 20:35:14 UTC}
#updated_on
- %s %TIME{2014-01-13 10:28:18 UTC}
+ %s %TIME{2014-01-13 10:20:18 UTC}
#expires_on
%s %TIME{2015-02-14 20:35:14 UTC}
View
2  spec/fixtures/responses/whois.registry.net.za/status_registered.expected
@@ -1,5 +1,5 @@
#disclaimer
- %s == "The use of this Whois facility is subject to the following terms and\nconditions. https://registry.net.za/whois_terms\nCopyright (c) UniForum SA 1995-2013\n"
+ %s == "The use of this Whois facility is subject to the following terms and\nconditions. https://registry.net.za/whois_terms\nCopyright (c) UniForum SA 1995-2014\n"
#domain
View
10 spec/whois/record/parser/responses/whois.nic.ec/status_registered_spec.rb
@@ -23,7 +23,7 @@
describe "#domain" do
it do
- expect(subject.domain).to eq("google.as")
+ expect(subject.domain).to eq("google.ec")
end
end
describe "#domain_id" do
@@ -49,19 +49,19 @@
describe "#created_on" do
it do
expect(subject.created_on).to be_a(Time)
- expect(subject.created_on).to eq(Time.parse("2003-10-16 00:00:00 UTC"))
+ expect(subject.created_on).to eq(Time.parse("2003-10-16 00:00:00"))
end
end
describe "#updated_on" do
it do
expect(subject.updated_on).to be_a(Time)
- expect(subject.updated_on).to eq(Time.parse("2013-09-17 00:00:00 UTC"))
+ expect(subject.updated_on).to eq(Time.parse("2013-09-17 00:00:00"))
end
end
describe "#expires_on" do
it do
expect(subject.expires_on).to be_a(Time)
- expect(subject.expires_on).to eq(Time.parse("2014-10-16 00:00:00 UTC"))
+ expect(subject.expires_on).to eq(Time.parse("2014-10-16 00:00:00"))
end
end
describe "#registrar" do
@@ -70,7 +70,7 @@
expect(subject.registrar.id).to eq(nil)
expect(subject.registrar.name).to eq("MarkMonitor Inc.")
expect(subject.registrar.organization).to eq(nil)
- expect(subject.registrar.url).to eq(nil)
+ expect(subject.registrar.url).to eq("www.markmonitor.com")
end
end
describe "#nameservers" do
View
2  spec/whois/record/parser/responses/whois.nic.travel/property_status_single_spec.rb
@@ -23,7 +23,7 @@
describe "#status" do
it do
- expect(subject.status).to eq("ok")
+ expect(subject.status).to eq(["ok"])
end
end
end
View
2  spec/whois/record/parser/responses/whois.nic.travel/status_registered_spec.rb
@@ -33,7 +33,7 @@
end
describe "#status" do
it do
- expect(subject.status).to eq("ok")
+ expect(subject.status).to eq(["ok"])
end
end
describe "#available?" do
View
2  spec/whois/record/parser/responses/whois.registry.in/status_registered_spec.rb
@@ -58,7 +58,7 @@
end
describe "#updated_on" do
it do
- expect(subject.updated_on).to eq(Time.parse("2014-01-13 10:28:18 UTC"))
+ expect(subject.updated_on).to eq(Time.parse("2014-01-13 10:20:18 UTC"))
end
end
describe "#expires_on" do
View
2  spec/whois/record/parser/responses/whois.registry.net.za/status_registered_spec.rb
@@ -23,7 +23,7 @@
describe "#disclaimer" do
it do
- expect(subject.disclaimer).to eq("The use of this Whois facility is subject to the following terms and\nconditions. https://registry.net.za/whois_terms\nCopyright (c) UniForum SA 1995-2013\n")
+ expect(subject.disclaimer).to eq("The use of this Whois facility is subject to the following terms and\nconditions. https://registry.net.za/whois_terms\nCopyright (c) UniForum SA 1995-2014\n")
end
end
describe "#domain" do
Please sign in to comment.
Something went wrong with that request. Please try again.