# Maintenance Release of Verify - 0.3.1

**URL:** <https://www.ruby-forum.com/t/maintenance-release-of-verify-0-3-1/170984>\
**Category:** Ruby\
**Created:** [June 24, 2009, 10:01pm UTC](https://www.ruby-forum.com/t/maintenance-release-of-verify-0-3-1/170984 "2009-06-24T22:01:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![flatekmonkey](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/e8c25b/32.png) [@flatekmonkey](https://www.ruby-forum.com/u/flatekmonkey)\
**Post date:** [June 24, 2009, 10:01pm UTC](https://www.ruby-forum.com/t/maintenance-release-of-verify-0-3-1/170984/1 "2009-06-24T22:01:33Z")

</div>

No I did not do this on purpose 😉

[http://rubyforge.org/frs/?group\_id=3824](http://rubyforge.org/frs/?group_id=3824)  
or  
gem install verify  
or  
gem update verify

## v 0.3.1 2009-06-24 Verify

- Heavy refactoring, the code sucks much less now.
- Trying to get it to run with JRuby --1.9, no such luck, waiting for  
the next release.

Enjoy  
Robert

–  
Toutes les grandes personnes ont d’abord été des enfants, mais peu  
d’entre elles s’en souviennent.

All adults have been children first, but not many remember.

[Antoine de Saint-Exupéry]

---

<div class="post-metadata">

**Author:** ![flatekmonkey](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/e8c25b/32.png) [@flatekmonkey](https://www.ruby-forum.com/u/flatekmonkey)\
**Post date:** [June 24, 2009, 10:54pm UTC](https://www.ruby-forum.com/t/maintenance-release-of-verify-0-3-1/170984/2 "2009-06-24T22:54:23Z")

</div>

On Jun 24, 2009, at 13:01 , Robert D. wrote:

> No I did not do this on purpose 😉

and the lack of a description? was that on purpose too?

> [http://rubyforge.org/frs/?group\_id=3824](http://rubyforge.org/frs/?group_id=3824)

From here I found:

> The Labrador package is to programming what the Labrador bread is to  
> dogs, for me. I like it. Very compact enum method API, Ivar Free  
> Ruby by means of closure based properties and who knows what will  
> come…

nom nom Labrador bread nom

and yet, still no idea what this software is, besides tasty.

---

<div class="post-metadata">

**Author:** ![flatekmonkey](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/e8c25b/32.png) [@flatekmonkey](https://www.ruby-forum.com/u/flatekmonkey)\
**Post date:** [June 24, 2009, 11:17pm UTC](https://www.ruby-forum.com/t/maintenance-release-of-verify-0-3-1/170984/3 "2009-06-24T23:17:51Z")

</div>

On Wed, Jun 24, 2009 at 10:53 PM, Ryan D.[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> 

This is only a maintenance release I did not want to advertise my tiny  
package too much.  
I just have no time to update my Rubyforge project homepage, but there  
is a short description [http://labrador.rubyforge.org/](http://labrador.rubyforge.org/)  
Here is the README

This is the very simple Verify mini test framework

It emphasises on being able to check things out quickly without having  
to load a heavy test  
framework.  
It evolves around my needs but for the time being it is pretty  
lightweight.

require ‘verify’

Verify “Some Important Facts” do  
verify “42 is true” do  
42  
end  
refute “42 is pretty big” do  
42 \> 100\_000  
end  
verify\_exceptions NoMethodError do  
42.unrelinguished!  
end  
end

These forms are very easy to remember, but sometimes one needs to see  
where the  
errors, are, in order to achieve that one can use the parameter form

Verify “With parameters” do  
verify msg: “Everything is well”, target: 42, actual: 21 \* 2  
refute msg: “But not too much”, target: 42, actual: 41  
end

Mockify allows to capture stdout or simulate stdin, all you need to do  
is to  
require ‘mockify’ _before_ requiring ‘verify’ and than you can provide  
stdin  
and get stdout

Verify “Providing stdin” do  
with\_input %w{The Quick Brown Fox} do  
verify %{first line is “The”} do  
“The” == gets.chomp  
end  
end  
end

Verify “Capturing stdout” do  
out = with\_output do | o |  
puts 42  
verify target: “42\n”, actual: o.string  
end  
end  
verify msg: “with\_output converted out to an array of lines”,  
actual: out.map( &:chomp ),  
target: %w{ 42 }  
end

Enjoy

–  
Toutes les grandes personnes ont d’abord été des enfants, mais peu  
d’entre elles s’en souviennent.

All adults have been children first, but not many remember.

[Antoine de Saint-Exupéry]
