spec/requests/how_tos_spec.rb in cookbook-0.1.5 vs spec/requests/how_tos_spec.rb in cookbook-0.1.6

- old
+ new

@@ -67,16 +67,16 @@ describe 'PATCH /update' do let(:new_attributes) do { name: 'Foo', - tool_uses_attributes: [ - { + tool_uses_attributes: { + 0 => { use_of_id: tool.id, use_of_type: 'Tool', note: 'Test Note' } - ] + } } end context 'with valid parameters' do it 'updates the requested how_to' do patch how_to_url(how_to), params: { how_to: new_attributes }