rrabinovitch / rails_engine_rr

ReST API for sales data
0 stars 0 forks source link

See if there's a better way to write this expectation in `merchant_items_request_spec` #20

Open rrabinovitch opened 3 years ago

rrabinovitch commented 3 years ago

See if there's a better way to write this expectation:

expect(merchant_items_json[:data].none? { |item| item[:id] == diff_merchant_item.id }).to eq(true)

_Originally posted by @rrabinovitch in https://github.com/rrabinovitch/rails_engine_rr/issues/6#issuecomment-684182884_

rrabinovitch commented 3 years ago

look into: expect(merchant_items_json[:data]).to not_include(diff_merchant_item)