Skip to content

Commit

Permalink
Update fixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
weppos committed Feb 25, 2014
1 parent c80d35c commit 358e06e
Show file tree
Hide file tree
Showing 11 changed files with 19 additions and 18 deletions.
1 change: 1 addition & 0 deletions lib/whois/record/parser/whois.nic.ec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@


require 'whois/record/parser/base'
require 'whois/record/parser/base_cocca'


module Whois
Expand Down
10 changes: 5 additions & 5 deletions spec/fixtures/responses/whois.nic.ec/status_registered.expected
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#domain
%s == "google.as"
%s == "google.ec"

#domain_id
%s %ERROR{AttributeNotSupported}
Expand All @@ -17,23 +17,23 @@

#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
%s %CLASS{registrar}
%s.id == nil
%s.name == "MarkMonitor Inc."
%s.organization == nil
%s.url == nil
%s.url == "www.markmonitor.com"


#nameservers
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#status
%s == "ok"
%s == ["ok"]
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@


#status
%s == "ok"
%s == ["ok"]

#available?
%s == false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

describe "#status" do
it do
expect(subject.status).to eq("ok")
expect(subject.status).to eq(["ok"])
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 358e06e

Please sign in to comment.