spy 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/README.md +1 -0
- data/lib/spy/integration.rb +8 -4
- data/lib/spy/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2df9e2c81c1f84a18f63cd29bf4cecb52ce306d3
|
4
|
+
data.tar.gz: 9e24687eac37ff13270eaaaf3e49ddbb6a15cb65
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f0aa647e84d2d9f42c26fac2c90521caf7598706a5ddd0382b2734df34d80971aae4fede899177230a9163cf1a9e8f615327bdc6ceeabf586cec2ed4a5c426c5
|
7
|
+
data.tar.gz: ee2216257559c390631550327cd60c3935eff49e5477e62be771762dbe7f3eb9905385727957ff61133ea9e4aebf54f933e02c4a7d755ba2148fd7d31e399838
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
# Spy
|
2
|
+
|
2
3
|
[![Gem Version](https://badge.fury.io/rb/spy.png)](http://badge.fury.io/rb/spy)
|
3
4
|
[![Build Status](https://travis-ci.org/ryanong/spy.png?branch=master)](https://travis-ci.org/ryanong/spy)
|
4
5
|
[![Coverage Status](https://coveralls.io/repos/ryanong/spy/badge.png?branch=master)](https://coveralls.io/r/ryanong/spy)
|
data/lib/spy/integration.rb
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
require 'spy'
|
2
2
|
|
3
3
|
module Spy
|
4
|
-
if defined?(::MiniTest::Unit::TestCase)
|
5
|
-
|
4
|
+
if defined?(::MiniTest::Unit::TestCase) || defined?(::Minitest::Test)
|
5
|
+
module MiniTestAdapter
|
6
6
|
include API
|
7
7
|
def after_teardown
|
8
8
|
super
|
@@ -10,12 +10,16 @@ module Spy
|
|
10
10
|
end
|
11
11
|
end
|
12
12
|
|
13
|
-
::MiniTest::Unit::TestCase
|
13
|
+
if defined?(::MiniTest::Unit::TestCase)
|
14
|
+
::MiniTest::Unit::TestCase.send(:include, MiniTestAdapter)
|
15
|
+
else
|
16
|
+
::Minitest::Test.send(:include, MiniTestAdapter)
|
17
|
+
end
|
14
18
|
end
|
15
19
|
|
16
20
|
if defined?(::Test::Unit::TestCase) && !(defined?(::MiniTest::Unit::TestCase) && (::Test::Unit::TestCase < ::MiniTest::Unit::TestCase)) && !(defined?(::MiniTest::Spec) && (::Test::Unit::TestCase < ::MiniTest::Spec))
|
17
21
|
|
18
|
-
|
22
|
+
module TestUnitAdapter
|
19
23
|
include API
|
20
24
|
def self.included(mod)
|
21
25
|
mod.teardown :spy_teardown, :after => :append
|
data/lib/spy/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Ong
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-05-
|
11
|
+
date: 2013-05-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pry
|