Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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'

like image 381
Michael Durrant Avatar asked Oct 15 '13 15:10

Michael Durrant


1 Answers

This syntax works:

expect(@line.filter_results_and_display_them).to eq @processed
like image 198
Michael Durrant Avatar answered Sep 21 '22 13:09

Michael Durrant