对于下面的代码片段:
@by_hidden.should_not_receive(:by_limit).with(100).and_return(@by_limit)
我面临错误,为>>
@by_hidden.should_not_receive(:by_limit).with(100).and_return(@by_limit) (Double Object).by_limit(100) expected: 1 time with arguments: (100) received: 0 times with arguments: (100)
关于此的任何信息,将不胜感激。
对于下面的代码段:@ by_hidden.should_not_receive(:by_limit).with(100).and_return(@by_limit)我正面临@@ by_hidden.should_not_receive(:by_limit).with(100).and_return(@by_limit)的错误)...
这样写: