Rspec
Rspec実行時に以下で怒られました。 WARNING: Using `expect { }.not_to raise_error(SpecificErrorClass)` risks false positives, since literally any other error would cause the expectation to pass, including those raised by Ruby (e.g. `NoMethod…
表題通り1つのexpectに対して複数のchangeを検証したい it '複数のchangeを見るぞ' do expect { subject }.to change { x }.by(1). and change { y }.by(2) end 見づらいのであまり使いたくない… 参考 stackoverflow.com RSpec3.1からの機能らしい rspec.info
(あまり良くないんだけど)ちょっとスキップしたい場面に出くわしたのでメモ ブロックを skip とするか RSpec.describe "an example" do skip "is skipped" do end end 頭に x をつければいいだけらしい RSpec.describe "an example" do xit "is skipped us…