
エントリーの編集

エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
Is it possible for RSpec to expect change in two tables?
記事へのコメント0件
- 注目コメント
- 新着コメント
このエントリーにコメントしてみましょう。
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています

- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
Is it possible for RSpec to expect change in two tables?
RSpec expect change: it "should increment the count" do expect{Foo.bar}.to change{Counter.count}.... RSpec expect change: it "should increment the count" do expect{Foo.bar}.to change{Counter.count}.by 1 end Is there a way to expect change in two tables? expect{Foo.bar}.to change{Counter.count}.by 1 and change{AnotherCounter.count}.by 1