Right now i am using not_to eq, how can i use should not include in following scenario?
Code:
expect(object.method('param1')).not_to eq(array)
Console:
expected: value != ["value1", "value2",
"value3","value4"]
got: ["value2", "value3"]
You can use include matcher (docs)
expect(object.method('param1')).not_to include(*array)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With