https://github.com/peterzhu2118/declarative_minitest
Ports Rails declarative minitest into regular minitest
https://github.com/peterzhu2118/declarative_minitest
minitest ruby
Last synced: 12 months ago
JSON representation
Ports Rails declarative minitest into regular minitest
- Host: GitHub
- URL: https://github.com/peterzhu2118/declarative_minitest
- Owner: peterzhu2118
- License: mit
- Created: 2018-08-08T20:55:00.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2022-07-29T13:41:29.000Z (almost 4 years ago)
- Last Synced: 2025-03-25T10:51:11.706Z (about 1 year ago)
- Topics: minitest, ruby
- Language: Ruby
- Homepage: https://rubygems.org/gems/declarative_minitest
- Size: 13.7 KB
- Stars: 5
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: MIT-LICENSE
Awesome Lists containing this project
README
# Declarative Minitest  [](https://badge.fury.io/rb/declarative_minitest)
Adds declarative minitest (`setup do`, `test 'the truth' do`, and `teardown do`) syntax from Rails-flavoured minitest to the original minitest.
## Installation
```
$ gem install declarative_minitest
```
or add to your `Gemfile`:
```
gem 'declarative_minitest', '~> 0.1.2'
```
## How to use
Add the line `require 'minitest/declarative'` after `require 'minitest/autorun'` in
either `test_helper.rb` or in the individual tests that you want declarative syntax.