Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[expectations] Add chained matchers example to raise_error (rspec/rsp…
…ec-expectations#1087) * Add chained matchers example to raise_error Being new to rspec, it wasn't clear that I could pass composed matchers to 'raise_error'. This commit adds an example of a chained matcher being passed to 'raise_error'. This is useful for testing custom attributes on an error while still satisfying the one 'expect' statement per test case enforced by rubocop-rspec. See rubocop/rubocop-rspec#379 for more details. --- This commit was imported from rspec/rspec-expectations@dc0ecfd.
- Loading branch information