rspec The expect syntax does not support operator matchers, so you must pass a matcher to `#to`

StackOverflow https://stackoverflow.com/questions/19384714

  •  30-06-2022
  •  | 
  •  

Question

using the new expect syntax:

 expect(@line.filter_results_and_display_them).to == @processed

Getting this error:

ArgumentError: The expect syntax does not support operator matchers, so you must pass a matcher to '#to'

Was it helpful?

Solution

This syntax works:

expect(@line.filter_results_and_display_them).to eq @processed
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top