Sha256: b197e95e8ae04b0f0783322204a87cca8e2d6a34597a1df0f4fd58bc31f4bb72

Contents?: true

Size: 555 Bytes

Versions: 9

Compression:

Stored size: 555 Bytes

Contents

require 'test_helper'

module RubyPsigate
  class ItemOptionTest < Test::Unit::TestCase
    
    should "return a key-value hash pair" do
      hash = { :colour => "Pink" }
      @item_option = ItemOption.new(hash)
      assert_equal hash, @item_option.instance_variable_get(:@option)
    end
    
    should "accept multiple option parameters" do
      hash = { :color => "Black", :size => "Large", :style => "modern" }
      @item_option = ItemOption.new(hash)
      assert_equal hash, @item_option.instance_variable_get(:@option)
    end
    
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
ruby_psigate-0.7.8 test/unit/item_option_test.rb
ruby_psigate-0.7.7 test/unit/item_option_test.rb
ruby_psigate-0.7.6 test/unit/item_option_test.rb
ruby_psigate-0.7.5 test/unit/item_option_test.rb
ruby_psigate-0.7.4 test/unit/item_option_test.rb
ruby_psigate-0.7.3 test/unit/item_option_test.rb
ruby_psigate-0.7.2 test/unit/item_option_test.rb
ruby_psigate-0.7.1 test/unit/item_option_test.rb
ruby_psigate-0.7 test/unit/item_option_test.rb