Sha256: 0e565ca8625b0e1b583083defa89393287a3a5f78d7b64d5344f8162c5f0cfff
Contents?: true
Size: 578 Bytes
Versions: 6
Compression:
Stored size: 578 Bytes
Contents
require 'helper' require 'peddler/request/structured_list' class PeddlerRequestStructuredListTest < MiniTest::Test def setup @structured_list = Peddler::Request::StructuredList.new(:order_status) end def test_builds_a_structured_list_for_a_single_value exp = { 'OrderStatus.Status.1' => 'foo' } assert_equal(exp, @structured_list.build('foo')) end def test_builds_a_structured_list_for_an_array_of_values exp = { 'OrderStatus.Status.1' => 'foo', 'OrderStatus.Status.2' => 'bar' } assert_equal(exp, @structured_list.build(%w(foo bar))) end end
Version data entries
6 entries across 6 versions & 1 rubygems