Skip to content

Latest commit

 

History

History
47 lines (32 loc) · 1023 Bytes

README.md

File metadata and controls

47 lines (32 loc) · 1023 Bytes

Uses @mattsears's Nyan Cat Formatter and code copied from @tenderlove's minitest-emoji.

minitest-nyan-cat

http://github.com/tgxworld/minitest-nyan-cat

DESCRIPTION:

Prints a Nyan Cat trail for your test output

INSTALL:

gem install minitest-nyan-cat

SYNOPSIS:

  require 'minitest/autorun'
  require 'minitest/nyan_cat'

  describe 'my amazing tests' do
    200.times do |i|
      it "must #{i}" do
        100.must_equal 100
      end
    end

    2.times do |i|
      it "compares #{i} to #{i + 1}" do
        i.must_equal i + 1
      end
    end

    it 'skips things!!' do
      skip "don't care!"
    end
  end

RAILS:

Add gem 'minitest-nyan-cat', group: :test to your Gemfile and run bundle install`.

Following which, add require 'minitest/nyan_cat' to your test_helper.rb.