mirror of
https://github.com/Evolix/chexpire.git
synced 2024-06-10 11:34:29 +02:00
fix namespace for SSL::Response
This commit is contained in:
parent
491ed0567a
commit
1d82c743bc
|
@ -11,7 +11,7 @@ module SSL
|
||||||
parser = Parser.new("ssl0.domain.org")
|
parser = Parser.new("ssl0.domain.org")
|
||||||
domain = file_fixture("ssl/ssl0.domain.org.txt").read
|
domain = file_fixture("ssl/ssl0.domain.org.txt").read
|
||||||
response = parser.parse(domain)
|
response = parser.parse(domain)
|
||||||
assert_kind_of Whois::Response, response
|
assert_kind_of SSL::Response, response
|
||||||
|
|
||||||
assert_equal Time.new(2028, 6, 10, 9, 14, 18, 0), response.expire_at
|
assert_equal Time.new(2028, 6, 10, 9, 14, 18, 0), response.expire_at
|
||||||
assert response.expire_at.utc?
|
assert response.expire_at.utc?
|
||||||
|
@ -21,7 +21,7 @@ module SSL
|
||||||
parser = Parser.new("ssl1.domain.org")
|
parser = Parser.new("ssl1.domain.org")
|
||||||
domain = file_fixture("ssl/ssl1.domain.org.txt").read
|
domain = file_fixture("ssl/ssl1.domain.org.txt").read
|
||||||
response = parser.parse(domain)
|
response = parser.parse(domain)
|
||||||
assert_kind_of Whois::Response, response
|
assert_kind_of SSL::Response, response
|
||||||
|
|
||||||
assert_equal Time.new(2022, 8, 6, 0, 57, 0, 0), response.expire_at
|
assert_equal Time.new(2022, 8, 6, 0, 57, 0, 0), response.expire_at
|
||||||
assert response.expire_at.utc?
|
assert response.expire_at.utc?
|
||||||
|
|
|
@ -35,7 +35,7 @@ module SSL
|
||||||
)
|
)
|
||||||
|
|
||||||
service = Service.new("ssl0.domain.org")
|
service = Service.new("ssl0.domain.org")
|
||||||
assert_kind_of Whois::Response, service.parse(result)
|
assert_kind_of SSL::Response, service.parse(result)
|
||||||
end
|
end
|
||||||
|
|
||||||
test "should uses the command line arguments of the configuration" do
|
test "should uses the command line arguments of the configuration" do
|
||||||
|
|
Loading…
Reference in a new issue