GreenEggs

GreenEggs is a small RedGreen-inspired plugin for Bacon.

Requirements

  • Ruby 1.8

  • Bacon >= 1.0

Installation

Using RubyGems:

(sudo) gem install greeneggs -s http://gems.github.com

Or clone from github:

git clone git://github.com/disinnovate/greeneggs.git

Or add as a submodule to an existing git repository:

git add submodule git://github.com/disinnovate/greeneggs.git

For Ruby on Rails projects, clone to vendor/plugins/greeneggs:

git clone git://github.com/disinnovate/greeneggs.git vendor/plugins/greeneggs
git add submodule git://github.com/disinnovate/greeneggs.git vendor/plugins/greeneggs

Usage

To use GreenEggs with Bacon, simply require 'greeneggs' and you’re done.

Example: <code> require ‘bacon’ require ‘greeneggs’

describe ‘GreenEggs’ do

it 'should display passing specs in green' do
  true.should.eql? true
end

it 'should display empty specs in yellow' do
end

it 'should display err-raising specs in purple/magenta' do

raise ‘this is a dummy error’

end

it 'should display failed specs in red' do
  should.flunk 'this is a dummy failure'
end

end

TODO

  • Windows support

Thanks to

Copyright © 2009 Michael Fleet <disinnovate.com>. See LICENSE for details.