Sha256: c1e3b42ec993f861111af48fbdad709ac106a9a2d555c6e952f1efa3a9a7a058

Contents?: true

Size: 519 Bytes

Versions: 17

Compression:

Stored size: 519 Bytes

Contents

require 'test_helper'

class CSRTest < Test::Unit::TestCase
  
  context 'CSR' do
    
    [ :body,
      :common_name,
      :city,
      :state,
      :country,
      :organization,
      :organizational_unit ].each do |method|
        
      should "respond to #{method}" do
        assert_respond_to(GeoCerts::CSR.new, method)
      end
      
      should "properly set the #{method}" do
        assert_equal('test', GeoCerts::CSR.new(method => 'test').__send__(method))
      end
      
    end
    
  end
  
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
geocerts-1.0.1 test/units/csr_test.rb
geocerts-1.0.0 test/units/csr_test.rb
geocerts-0.0.25 test/units/csr_test.rb
geocerts-0.0.24 test/units/csr_test.rb
geocerts-0.0.23 test/units/csr_test.rb
geocerts-0.0.22 test/units/csr_test.rb
geocerts-0.0.21 test/units/csr_test.rb
geocerts-0.0.20 test/units/csr_test.rb
geocerts-0.0.19 test/units/csr_test.rb
geocerts-0.0.18 test/units/csr_test.rb
geocerts-0.0.17 test/units/csr_test.rb
geocerts-0.0.16 test/units/csr_test.rb
geocerts-0.0.15 test/units/csr_test.rb
geocerts-0.0.14 test/units/csr_test.rb
geocerts-0.0.13 test/units/csr_test.rb
geocerts-0.0.12 test/units/csr_test.rb
geocerts-0.0.11 test/units/csr_test.rb