Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
古い rspec テスト (v 2.1) を最新バージョンの rspec (3.1) で動作するように変換しようとしていますが、この行で問題が発生しています...
subject.should_receive(:damage).with(10)v3.0 の構文はどうなりますか?
subject.should_receive(:damage).with(10)
新しい構文は次のとおりです。
expect(subject).to receive(:damage).with(10)
詳細については、この記事をお読みください