module Steps Step "I have a jar with candies" do |attrs| @jar = Jar.new(attrs[:candies]) end Step "I eat one candy" do @jar.eat_candy end Step "the jar will be empty" do @jar.empty?.must_equal true end Step "the jar won't be empty" do @jar.empty?.wont_equal true end end MiniTest::Unit::TestCase.send :include, Steps