🕷 software projects

by ryan davis



sitemap

minitest-bacon

extends minitest with 90+% bacon-like functionality.

minitest-bacon extends minitest with bacon-like functionality. It should allow you to bridge 90+% of your bacon specs over to minitest.

  • Passes almost all of bacon’s tests.
  • Where they don’t it is documented why they don’t.
    • Only one before/after block per describe (ie, they’re just methods again).
    • Object#should doesn’t work outside of describe. Not sure what that’s for.
    • Tests are no longer order dependent. This is a Good Thing™.
require "minitest/bacon"

describe "A new array" do
  before do
    @ary = Array.new
  end

  it "should be empty" do
    @ary.should.be.empty
    @ary.should.not.include 1
  end

  it "should have zero size" do
    @ary.size.should.equal 0
    @ary.size.should.be.close 0.1, 0.5
  end

  # ... and so on ...
end

Get The Code

If you just want to use minitest-bacon, you can install it via RubyGems:
gem install minitest-bacon
Fork me on GitHub If you want to hack on minitest-bacon, clone it from GitHub:
git clone git://github.com/seattlerb/minitest-bacon

Latest Activity