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