Sha256: 74a35b2e7a43393470205245cca14757abe1df0554c9b0f168cfeb01c540e543
Contents?: true
Size: 1.02 KB
Versions: 11
Compression:
Stored size: 1.02 KB
Contents
require 'test_helper' class GeoCerts::Order::RenewalInformationTest < Test::Unit::TestCase context 'GeoCerts::Order::RenewalInformation' do [ :months, :serial_number, :geotrust_order_id, :expires_at ].each do |method| should "respond to #{method}" do assert_respond_to(GeoCerts::Order::RenewalInformation.new, method) end should "properly set the #{method}" do assert_equal('test', GeoCerts::Order::RenewalInformation.new(method => 'test').__send__(method)) end end should 'respond to indicator' do assert_respond_to(GeoCerts::Order::RenewalInformation.new, :indicator) end should 'set the indicator to true' do assert_kind_of TrueClass, GeoCerts::Order::RenewalInformation.new(:indicator => 'true').indicator end should 'set the indicator to false' do assert_kind_of FalseClass, GeoCerts::Order::RenewalInformation.new(:indicator => 'false').indicator end end end
Version data entries
11 entries across 11 versions & 1 rubygems