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

Version Path
geocerts-1.0.1 test/units/order/renewal_information_test.rb
geocerts-1.0.0 test/units/order/renewal_information_test.rb
geocerts-0.0.25 test/units/order/renewal_information_test.rb
geocerts-0.0.24 test/units/order/renewal_information_test.rb
geocerts-0.0.23 test/units/order/renewal_information_test.rb
geocerts-0.0.22 test/units/order/renewal_information_test.rb
geocerts-0.0.21 test/units/order/renewal_information_test.rb
geocerts-0.0.20 test/units/order/renewal_information_test.rb
geocerts-0.0.19 test/units/order/renewal_information_test.rb
geocerts-0.0.18 test/units/order/renewal_information_test.rb
geocerts-0.0.17 test/units/order/renewal_information_test.rb