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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0b0de47cae4d5ee5cf4709bc537489dc137007b5
4
- data.tar.gz: 4e6cff2b7b27e27c787ad93d5fb1af723f382739
3
+ metadata.gz: 2df9e2c81c1f84a18f63cd29bf4cecb52ce306d3
4
+ data.tar.gz: 9e24687eac37ff13270eaaaf3e49ddbb6a15cb65
5
5
  SHA512:
6
- metadata.gz: fed5be1346e1c658363827797fd9a20b1241f33724c4af92b8f1616887967a3ff44ea51409ec027a8187b9b95db606cd361972cbed323c7bb4ebdbf5c734d8d1
7
- data.tar.gz: 65ce3667c4665ef8a396d0e6ab3248d88d57eaedff2b6393865d661813b4253c63e213990fa0f3e8684c5e7b882e92db44dd74c1e2cd1a7483611d1239e968a7
6
+ metadata.gz: f0aa647e84d2d9f42c26fac2c90521caf7598706a5ddd0382b2734df34d80971aae4fede899177230a9163cf1a9e8f615327bdc6ceeabf586cec2ed4a5c426c5
7
+ data.tar.gz: ee2216257559c390631550327cd60c3935eff49e5477e62be771762dbe7f3eb9905385727957ff61133ea9e4aebf54f933e02c4a7d755ba2148fd7d31e399838
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## Spy 0.4.0 (May 8, 2013) ##
2
+
3
+ * Allow `Spy#have_received_with` to accept a block
4
+ * Add automatic test integration for TestUnit, Minitest and Rspec
5
+ * Fix a few rubinius tests
6
+
1
7
  ## Spy 0.3.1 (March 13, 2013) ##
2
8
 
3
9
  * Fix Agency recruiting of mock
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)
@@ -1,8 +1,8 @@
1
1
  require 'spy'
2
2
 
3
3
  module Spy
4
- if defined?(::MiniTest::Unit::TestCase)
5
- class MiniTestAdapter
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.send(:include, MiniTestAdapter)
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
- class TestUnitAdapter
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
@@ -1,3 +1,3 @@
1
1
  module Spy
2
- VERSION = "0.4.0"
2
+ VERSION = "0.4.1"
3
3
  end
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.0
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-08 00:00:00.000000000 Z
11
+ date: 2013-05-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry