Sha256: 95fe361eddd43a297dd4844c76605067f253d5e02256c71f9bd50046cb67a589

Contents?: true

Size: 403 Bytes

Versions: 1

Compression:

Stored size: 403 Bytes

Contents

require 'minitest/spec'
require 'pp'

module Test
  module Unit
    class TestCase < ::MiniTest::Spec
      
      MINI_SPECUNIT = true
      
      
      def mu_pp(obj)
        obj.pretty_inspect.chomp
      end
      
      def build_message(head, template=nil, *arguments)
        template &&= template.chomp
        template.gsub(/\?/) { mu_pp(arguments.shift) }
      end
      
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mini_specunit-0.1.1 lib/test/unit/testcase.rb