geocerts 0.0.13 → 0.0.14
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/geocerts.gemspec +1 -1
- data/lib/geo_certs/endpoints/certificates.rb +1 -1
- data/lib/geo_certs/endpoints/events.rb +2 -2
- data/lib/geo_certs/exceptions.rb +1 -0
- data/test/integrations/certificate_test.rb +3 -3
- data/test/integrations/event_test.rb +3 -3
- data/test/integrations/order_test.rb +3 -3
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.14
|
data/geocerts.gemspec
CHANGED
@@ -4,7 +4,7 @@ module GeoCerts
|
|
4
4
|
module Certificates # :nodoc:
|
5
5
|
|
6
6
|
ELEMENTS = <<-CERTIFICATE
|
7
|
-
element 'order-id', :as => :order_id
|
7
|
+
element 'order-id', :as => :order_id
|
8
8
|
element 'geotrust-order-id', :as => :geotrust_order_id
|
9
9
|
element :status
|
10
10
|
element :certificate
|
@@ -18,7 +18,7 @@ module GeoCerts
|
|
18
18
|
|
19
19
|
elements :event do
|
20
20
|
element 'event-id', :as => :id, :type => Integer
|
21
|
-
element 'order-id', :as => :order_id
|
21
|
+
element 'order-id', :as => :order_id
|
22
22
|
element :name
|
23
23
|
element 'created-at', :as => :created_at, :type => DateTime
|
24
24
|
end
|
@@ -37,7 +37,7 @@ module GeoCerts
|
|
37
37
|
|
38
38
|
elements :event do
|
39
39
|
element 'event-id', :as => :id, :type => Integer
|
40
|
-
element 'order-id', :as => :order_id
|
40
|
+
element 'order-id', :as => :order_id
|
41
41
|
element :name
|
42
42
|
element 'created-at', :as => :created_at, :type => DateTime
|
43
43
|
end
|
data/lib/geo_certs/exceptions.rb
CHANGED
@@ -21,7 +21,7 @@ class GeoCerts::CertificateTest < Test::Unit::TestCase
|
|
21
21
|
should 'properly populate the certificate data' do
|
22
22
|
exclusively_mocked_request :get, '/certificates.xml', :response => Responses::Certificate::All do
|
23
23
|
certificate = GeoCerts::Certificate.all.first
|
24
|
-
assert_equal(422815,
|
24
|
+
assert_equal('422815', certificate.order_id)
|
25
25
|
assert_equal('93520', certificate.geotrust_order_id)
|
26
26
|
assert_equal('Renewed', certificate.status)
|
27
27
|
assert_equal('www.example.com', certificate.common_name)
|
@@ -81,7 +81,7 @@ class GeoCerts::CertificateTest < Test::Unit::TestCase
|
|
81
81
|
should 'properly populate the certificate data' do
|
82
82
|
exclusively_mocked_request :get, '/orders/422815/certificate.xml', :response => Responses::Certificate::Certificate do
|
83
83
|
certificate = GeoCerts::Certificate.find(422815)
|
84
|
-
assert_equal(422815,
|
84
|
+
assert_equal('422815', certificate.order_id)
|
85
85
|
assert_equal('93520', certificate.geotrust_order_id)
|
86
86
|
assert_equal('Renewed', certificate.status)
|
87
87
|
assert_equal('www.example.com', certificate.common_name)
|
@@ -131,7 +131,7 @@ class GeoCerts::CertificateTest < Test::Unit::TestCase
|
|
131
131
|
should 'properly populate the certificate data' do
|
132
132
|
exclusively_mocked_request :get, '/orders/422815/certificate.xml', :response => Responses::Certificate::Certificate do
|
133
133
|
certificate = GeoCerts::Certificate.find_by_order_id(422815)
|
134
|
-
assert_equal(422815,
|
134
|
+
assert_equal('422815', certificate.order_id)
|
135
135
|
assert_equal('93520', certificate.geotrust_order_id)
|
136
136
|
assert_equal('Renewed', certificate.status)
|
137
137
|
assert_equal('www.example.com', certificate.common_name)
|
@@ -24,7 +24,7 @@ class GeoCerts::EventTest < Test::Unit::TestCase
|
|
24
24
|
exclusively_mocked_request :get, '/events.xml', :response => Responses::Event::All do
|
25
25
|
event = GeoCerts::Event.all.first
|
26
26
|
assert_equal(795652, event.id)
|
27
|
-
assert_equal(422800,
|
27
|
+
assert_equal('422800', event.order_id)
|
28
28
|
assert_equal('Approver Confirmed', event.name)
|
29
29
|
assert_equal(DateTime.parse('2009-08-12T16:38:14-04:00'), event.created_at)
|
30
30
|
end
|
@@ -70,7 +70,7 @@ class GeoCerts::EventTest < Test::Unit::TestCase
|
|
70
70
|
exclusively_mocked_request :get, '/orders/422815/events.xml', :response => Responses::Event::Order do
|
71
71
|
event = GeoCerts::Event.find(422815).first
|
72
72
|
assert_equal(795652, event.id)
|
73
|
-
assert_equal(422815,
|
73
|
+
assert_equal('422815', event.order_id)
|
74
74
|
assert_equal('Approver Confirmed', event.name)
|
75
75
|
assert_equal(DateTime.parse('2009-08-12T16:38:14-04:00'), event.created_at)
|
76
76
|
end
|
@@ -132,7 +132,7 @@ class GeoCerts::EventTest < Test::Unit::TestCase
|
|
132
132
|
exclusively_mocked_request :get, '/orders/422815/events.xml', :response => Responses::Event::Order do
|
133
133
|
event = GeoCerts::Event.find_by_order_id(422815).first
|
134
134
|
assert_equal(795652, event.id)
|
135
|
-
assert_equal(422815,
|
135
|
+
assert_equal('422815', event.order_id)
|
136
136
|
assert_equal('Approver Confirmed', event.name)
|
137
137
|
assert_equal(DateTime.parse('2009-08-12T16:38:14-04:00'), event.created_at)
|
138
138
|
end
|
@@ -21,7 +21,7 @@ class GeoCerts::OrderTest < Test::Unit::TestCase
|
|
21
21
|
should 'properly populate the order data' do
|
22
22
|
exclusively_mocked_request :get, '/orders.xml', :response => Responses::Order::All do
|
23
23
|
order = GeoCerts::Order.all.first
|
24
|
-
assert_equal(422815,
|
24
|
+
assert_equal('422815', order.id)
|
25
25
|
assert_equal('srv02.wavepath.com', order.domain)
|
26
26
|
assert_equal('93520', order.geotrust_order_id)
|
27
27
|
assert_equal('Complete', order.status_major)
|
@@ -78,7 +78,7 @@ class GeoCerts::OrderTest < Test::Unit::TestCase
|
|
78
78
|
should 'properly populate the order data' do
|
79
79
|
exclusively_mocked_request :get, "/orders/422815.xml", :response => Responses::Order::Order do
|
80
80
|
order = GeoCerts::Order.find(422815)
|
81
|
-
assert_equal(422815,
|
81
|
+
assert_equal('422815', order.id)
|
82
82
|
assert_equal('srv02.wavepath.com', order.domain)
|
83
83
|
assert_equal('93520', order.geotrust_order_id)
|
84
84
|
assert_equal('Complete', order.status_major)
|
@@ -125,7 +125,7 @@ class GeoCerts::OrderTest < Test::Unit::TestCase
|
|
125
125
|
should 'properly populate the order data' do
|
126
126
|
exclusively_mocked_request :get, "/orders/422815.xml", :response => Responses::Order::Order do
|
127
127
|
order = GeoCerts::Order.find_by_id(422815)
|
128
|
-
assert_equal(422815,
|
128
|
+
assert_equal('422815', order.id)
|
129
129
|
assert_equal('srv02.wavepath.com', order.domain)
|
130
130
|
assert_equal('93520', order.geotrust_order_id)
|
131
131
|
assert_equal('Complete', order.status_major)
|