asrt

Allows you to assert things to be true in your code.


License
MIT
Install
gem install asrt -v 0.1.1

Documentation

asrt

Build Status Code Climate Coveralls MIT License

Introduction

This gem simply gives you asrt so you can do assertions like this:

def funny(input)
  asrt input.is_a?(String), 'Me only eat strings.'

  input.strip + ' is funny'
end

Why use asrt rather than assert? Well, it's short and you may like to use some other assert stuff for your unit tests.

Installation

gem install asrt

In your Gemfile may want to have gem 'asrt'.

Dependencies

None.

Contribute

  • Fork
  • Clone
  • bundle install && bundle exec rake test
  • Make your changes
  • bundle exec rake test again, preferably against Ruby 1.9.3, 2.0.0 and 2.1.0 (Travis will do that).
  • Create a Pull Request
  • Enjoy!