https://github.com/krisleech/rspec-exit_matchers
Exit matchers for Rspec 3
https://github.com/krisleech/rspec-exit_matchers
Last synced: 9 months ago
JSON representation
Exit matchers for Rspec 3
- Host: GitHub
- URL: https://github.com/krisleech/rspec-exit_matchers
- Owner: krisleech
- License: mit
- Created: 2014-07-11T22:58:27.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2014-07-11T22:58:40.000Z (almost 12 years ago)
- Last Synced: 2025-03-17T04:44:46.960Z (about 1 year ago)
- Language: Ruby
- Size: 105 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Rspec::ExitMatchers [WIP]
Rspec 3 matchers for `exit`.
## Installation
```ruby
gem 'rspec-exit_matchers'
```
## Usage
```ruby
# expect { my_code }.to exit_with_success
# expect { my_code }.to exit_with_failure
expect { my_code }.to exit_with_status(1)
expect { my_code }.to exit_with_status(0)
# expect { my_code }.to exit_with_any_status
# expect { my_code }.not_to exit_with_any_status
```
## Contributing
Yes, please.