README.md in petitest-0.3.0 vs README.md in petitest-0.3.1
- old
+ new
@@ -88,41 +88,10 @@
assert { foo }
```
If you need more assertions, use plugins like [patitest-assertions](https://github.com/petitest/petitest-assertions).
-## DSL
-
-If you want to use `#desc`, `#test` and `#sub_test` DSL, extend `Petitest::DSL` into your test class.
-
-```ruby
-class ExampleTest < Petitest::Test
- extend ::Petitest::DSL
-
- test "foo" do
- assert { foo }
- end
-
- desc "fuba"
- def test_fuba
- assert { fuba }
- end
-
- sub_test "bar" do
- test "baz" do
- assert { baz }
- end
-
- sub_test "boo" do
- test "boz" do
- assert { boz }
- end
- end
- end
-end
-```
-
## Configuration
### backtrace_filters
Mechanism for filter out unnecessary lines from error backtrace.
@@ -195,9 +164,10 @@
## Official Plugins
Here are some official plugins for Petitest:
- https://github.com/petitest/petitest-assertions
+- https://github.com/petitest/petitest-dsl
- https://github.com/petitest/petitest-power_assert
- https://github.com/petitest/petitest-tap
## For developers