Sha256: 0ce23f5086dad8c1313734b5d14c649a8235fdead09b5dbd2ae155837df5030a

Contents?: true

Size: 819 Bytes

Versions: 1

Compression:

Stored size: 819 Bytes

Contents

# Petitest::PowerAssert

[Power Assert](https://github.com/k-tsj/power_assert) for Petitest.

## Installation

Add this line to your application's Gemfile:

```ruby
gem "petitest-power_assert"
```

And then execute:

```bash
bundle
```

Or install it yourself as:

```bash
gem install petitest-power_assert
```

## Usage

1. Require `petitest/power_assert`
1. Prepend `Petitest::PowerAssert` into your test group
1. Write tests as usual

```ruby
require "petitest/autorun"
require "petitest/power_assert"

class ExampleTest < Petitest::TestGroup
  prepend ::Petitest::PowerAssert

  def test_block
    a = 1
    b = 1
    assert do
      a + b == 100
    end
  end

  def test_equality
    assert_equal("foo" + "bar", :baz.to_s)
  end

  # ... tests, tests, and more tests ...
end
```

![image](/images/screenshot.png)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
petitest-power_assert-0.1.1 README.md