Mic*_*ant 15 ruby rspec matcher
使用新的expect语法:
expect(@line.filter_results_and_display_them).to == @processed
Run Code Online (Sandbox Code Playgroud)
得到此错误:
ArgumentError:expect语法不支持运算符匹配器,因此必须将匹配器传递给'#to'
Mic*_*ant 16
此语法有效:
expect(@line.filter_results_and_display_them).to eq @processed
Run Code Online (Sandbox Code Playgroud)