Open rrabinovitch opened 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_
look into: expect(merchant_items_json[:data]).to not_include(diff_merchant_item)
expect(merchant_items_json[:data]).to not_include(diff_merchant_item)
See if there's a better way to write this expectation:
_Originally posted by @rrabinovitch in https://github.com/rrabinovitch/rails_engine_rr/issues/6#issuecomment-684182884_