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
  •  | 
  •  

Domanda

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'

È stato utile?

Soluzione

This syntax works:

expect(@line.filter_results_and_display_them).to eq @processed
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top