test/unit/peddler/test_operation.rb in peddler-1.6.0 vs test/unit/peddler/test_operation.rb in peddler-1.6.1
- old
+ new
@@ -13,13 +13,13 @@
assert_equal 1, @operation['FooStatus.Foo.1']
assert_equal 2, @operation['FooStatus.Foo.2']
end
def test_converts_nested_key_to_structured_list
- @operation.store('Foo.Status', [1])
+ @operation.store('Foo.Status', [{ 'Baz' => 1 }])
@operation.structure!('Status', 'Bar')
refute @operation.key?('FooStatus')
- assert_equal 1, @operation['Foo.Status.Bar.1']
+ assert_equal 1, @operation['Foo.Status.Bar.1.Baz']
end
def test_store_camelizes_symbol_key
@operation.store(:foo_bar, 'baz')
assert @operation.key?('FooBar')