spec/rest/orders_spec.rb in finapps-2.3.6 vs spec/rest/orders_spec.rb in finapps-2.3.7

- old
+ new

@@ -103,9 +103,15 @@ '7%5D%7D,%22assignment.operator_id%22:%22valid_operator%22,%22$or%22:%5B%7B%22public_id%22:%7B%22$in' \ '%22:%5B%22valid_order_id%22%5D%7D%7D,%7B%22original_order_id%22:%7B%22$in%22:%5B%22valid_order_id%22' \ '%5D%7D%7D%5D%7D&page=2&requested=25&sort=status' expect(WebMock).to have_requested(:get, url) end + it 'builds null assignment query properly when supplied w/ empty string' do + FinApps::REST::Orders.new(client).list(assignment: '') + + url = "#{FinAppsCore::REST::Defaults::DEFAULTS[:host]}/v2/orders?filter=%7B%22assignment.operator_id%22:null%7D" + expect(WebMock).to have_requested(:get, url) + end end end describe '#update' do subject(:orders) { FinApps::REST::Orders.new(client) }