Socket
Book a DemoInstallSign in
Socket

petitest-power_assert

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

petitest-power_assert

bundlerRubygems
Version
0.2.0
Version published
Maintainers
1
Created
Source

Petitest::PowerAssert

Gem Version Documentation

Power Assert for Petitest.

Installation

Add this line to your application's Gemfile:

gem "petitest-power_assert"

And then execute:

bundle

Or install it yourself as:

gem install petitest-power_assert

Usage

  • Require "petitest/power_assert"
  • Prepend Petitest::PowerAssert into your test groups
  • Write your test cases as usual
require "petitest/autorun"
require "petitest/power_assert"

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

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

image

FAQs

Package last updated on 23 Mar 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts