Sha256: 953d9016e8c0b680d5429c36243f49c7ee49561b4e9be197faced33db01c1034

Contents?: true

Size: 537 Bytes

Versions: 17

Compression:

Stored size: 537 Bytes

Contents

require 'test_helper'

class GeoCerts::Order::AdministratorTest < Test::Unit::TestCase
  
  context 'Order::Administrator' do
    
    [ :email,
      :first_name,
      :last_name,
      :phone ].each do |method|
        
      should "respond to #{method}" do
        assert_respond_to(GeoCerts::Order::Administrator.new, method)
      end
      
      should "properly set the #{method}" do
        assert_equal('test', GeoCerts::Order::Administrator.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/order/administrator_test.rb
geocerts-1.0.0 test/units/order/administrator_test.rb
geocerts-0.0.25 test/units/order/administrator_test.rb
geocerts-0.0.24 test/units/order/administrator_test.rb
geocerts-0.0.23 test/units/order/administrator_test.rb
geocerts-0.0.22 test/units/order/administrator_test.rb
geocerts-0.0.21 test/units/order/administrator_test.rb
geocerts-0.0.20 test/units/order/administrator_test.rb
geocerts-0.0.19 test/units/order/administrator_test.rb
geocerts-0.0.18 test/units/order/administrator_test.rb
geocerts-0.0.17 test/units/order/administrator_test.rb
geocerts-0.0.16 test/units/order/administrator_test.rb
geocerts-0.0.15 test/units/order/administrator_test.rb
geocerts-0.0.14 test/units/order/administrator_test.rb
geocerts-0.0.13 test/units/order/administrator_test.rb
geocerts-0.0.12 test/units/order/administrator_test.rb
geocerts-0.0.11 test/units/order/administrator_test.rb