antonmi / antonmi/espec

Feature: fail_with matcher

オープン
#265 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
enhancement
主要言語
Elixir
スター
813
フォーク
66
PR マージ指標
30日以内にマージされた PR はありません

説明

It would be useful to have a `fail_with` matcher similar to [RSpecs `fail_with`](http://www.rubydoc.info/gems/rspec-expectations/RSpec/Expectations.fail_with).

Sometimes we have to write some more complex tests which expect certain underlying behaviour from the tested code which is hard to cover with the existing expectations. On some occasions a custom assertions helps but on others such an assertion would be overkill.

Having a simple option to fail a test in an expected manner without raising an arbitrary error would increase test readability a great deal.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。