mini_specunit 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module MiniSpecUnit
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
@@ -1,9 +1,22 @@
1
1
  require 'minitest/spec'
2
+ require 'pp'
2
3
 
3
4
  module Test
4
5
  module Unit
5
6
  class TestCase < ::MiniTest::Spec
7
+
6
8
  MINI_SPECUNIT = true
9
+
10
+
11
+ def mu_pp(obj)
12
+ obj.pretty_inspect.chomp
13
+ end
14
+
15
+ def build_message(head, template=nil, *arguments)
16
+ template &&= template.chomp
17
+ template.gsub(/\?/) { mu_pp(arguments.shift) }
18
+ end
19
+
7
20
  end
8
21
  end
9
22
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: mini_specunit
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.0
5
+ version: 0.1.1
6
6
  platform: ruby
7
7
  authors:
8
8
  - Ken Collins