It only has an "assert_equal_set" at the moment, but I thought I better introduce SetAssertions. If nothing else, it shows you how to make a clean, conventional, Gem for custom assertions.
Usage
gem install set_assertions
or add it to your Gemfile
In your test_helper.rb or at the top of your test case file, just:
require 'set_assertions'
Then you can use the new assertions (well, one assertion, for now) in your tests.
Just a word on process.
I used Bundler to create the gem and publish it. It really is simple and elegant.
I also modified the Rakefile to support test-unit testing:
require "bundler/gem_tasks" require 'rake/testtask' Rake::TestTask.new do |t| t.libs << 'test' end desc "Run tests" task :default => :test
I haven't done much documentation yet either, but the most important thing is there, TESTS! :D
















