Sha256: b9943fc3a7d3c63bcfbfe8d35ad1e89ea8d556a27b4515cb20f4808196098bfa

Contents?: true

Size: 441 Bytes

Versions: 17

Compression:

Stored size: 441 Bytes

Contents

require 'test_helper'

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