0.0
No commit activity in last 3 years
No release in over 3 years
Simple utility that can replace rspec for really small apps
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 0.11
~> 3.7
~> 0.52

Runtime

~> 0.7
~> 0.5
 Project Readme

Usage

require 'simple_assert'
include SimpleAssert

def valid_day?(day)
  (1..31).include? day.to_i
end

assert('Inside lower limit') { valid_day? 1 }
assert('Outside lower limit') { !valid_day? 0 }
assert('Inside upper limit') { valid_day? 31 }
assert('Outside upper limit') { !valid_day? 32 }
assert('Deliberate failure') { valid_day? 66 }

This will produde the output:

OK  Inside lower limit
OK  Outside lower limit
OK  Inside upper limit
OK  Outside upper limit
ERR Deliberate failure