使用新的expect语法:

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

获取此错误:
argumenterror:expect语法不支持运算符匹配器,因此必须将匹配器传递给“to”

最佳答案

此语法有效:

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

关于ruby - rspec Expect语法不支持运算符匹配器,因此必须将匹配器传递给#to,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/19384714/

10-11 02:51