test/integrations/certificate_test.rb in geocerts-0.0.13 vs test/integrations/certificate_test.rb in geocerts-0.0.14
- old
+ new
@@ -19,11 +19,11 @@
end
should 'properly populate the certificate data' do
exclusively_mocked_request :get, '/certificates.xml', :response => Responses::Certificate::All do
certificate = GeoCerts::Certificate.all.first
- assert_equal(422815, certificate.order_id)
+ assert_equal('422815', certificate.order_id)
assert_equal('93520', certificate.geotrust_order_id)
assert_equal('Renewed', certificate.status)
assert_equal('www.example.com', certificate.common_name)
assert_equal('1E08', certificate.serial_number)
assert_equal('Atlanta', certificate.city)
@@ -79,11 +79,11 @@
end
should 'properly populate the certificate data' do
exclusively_mocked_request :get, '/orders/422815/certificate.xml', :response => Responses::Certificate::Certificate do
certificate = GeoCerts::Certificate.find(422815)
- assert_equal(422815, certificate.order_id)
+ assert_equal('422815', certificate.order_id)
assert_equal('93520', certificate.geotrust_order_id)
assert_equal('Renewed', certificate.status)
assert_equal('www.example.com', certificate.common_name)
assert_equal('1E08', certificate.serial_number)
assert_equal('Atlanta', certificate.city)
@@ -129,10 +129,10 @@
end
should 'properly populate the certificate data' do
exclusively_mocked_request :get, '/orders/422815/certificate.xml', :response => Responses::Certificate::Certificate do
certificate = GeoCerts::Certificate.find_by_order_id(422815)
- assert_equal(422815, certificate.order_id)
+ assert_equal('422815', certificate.order_id)
assert_equal('93520', certificate.geotrust_order_id)
assert_equal('Renewed', certificate.status)
assert_equal('www.example.com', certificate.common_name)
assert_equal('1E08', certificate.serial_number)
assert_equal('Atlanta', certificate.city)