0

我对旧版本的rspec不熟悉,现在我必须使用rspec 1.3.2

我有为最新的 rspec (~> 2.11) 构建的结构,它不适用于旧的:

MyClass.any_instance.should_receive(:my_method).with do |id, email, row|
  ...
  row.should be
  ...
end

旧 rspec 版本的等效结构是什么?

4

0 回答 0