spy 0.4.1 → 0.4.2

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: 2df9e2c81c1f84a18f63cd29bf4cecb52ce306d3
4
- data.tar.gz: 9e24687eac37ff13270eaaaf3e49ddbb6a15cb65
3
+ metadata.gz: 357dc2f6e1a122a0443515d850273f2f83cd6329
4
+ data.tar.gz: d2c91703541a64a9f43b7faa6e8737f652537c85
5
5
  SHA512:
6
- metadata.gz: f0aa647e84d2d9f42c26fac2c90521caf7598706a5ddd0382b2734df34d80971aae4fede899177230a9163cf1a9e8f615327bdc6ceeabf586cec2ed4a5c426c5
7
- data.tar.gz: ee2216257559c390631550327cd60c3935eff49e5477e62be771762dbe7f3eb9905385727957ff61133ea9e4aebf54f933e02c4a7d755ba2148fd7d31e399838
6
+ metadata.gz: cdbef88ac11e15f4191e82dcecece8f068e233478a5ab4030b3d81aa4d64514df9858609c771215977ff59c188a8c6af4f5b626f7554a826b34529cf6ec0aaa5
7
+ data.tar.gz: d56779624093b0268659e7b05d243885ea0e9e6319697e712f836e60ea2e5a6fbf7c5bbbf7837b3ab4e9ba7dd6d17cd845a6cad6975eac88125810e39be94937
@@ -10,9 +10,11 @@ module Spy
10
10
  end
11
11
  end
12
12
 
13
- if defined?(::MiniTest::Unit::TestCase)
13
+ if defined?(::MiniTest::Unit::TestCase) && !::MiniTest::Unit::TestCase.include?(MiniTestAdapter)
14
14
  ::MiniTest::Unit::TestCase.send(:include, MiniTestAdapter)
15
- else
15
+ end
16
+
17
+ if defined?(::Minitest::Test) && !::Minitest::Test.include?(MiniTestAdapter)
16
18
  ::Minitest::Test.send(:include, MiniTestAdapter)
17
19
  end
18
20
  end
@@ -1,3 +1,3 @@
1
1
  module Spy
2
- VERSION = "0.4.1"
2
+ VERSION = "0.4.2"
3
3
  end
@@ -1,6 +1,6 @@
1
1
  require 'test_helper'
2
2
 
3
- class TestApi < MiniTest::Unit::TestCase
3
+ class TestApi < Minitest::Test
4
4
  include Spy::API
5
5
 
6
6
  def setup
@@ -1,6 +1,6 @@
1
1
  require 'test_helper'
2
2
 
3
- class TestConstantSpying < MiniTest::Unit::TestCase
3
+ class TestConstantSpying < Minitest::Test
4
4
 
5
5
  class Foo
6
6
  HELLO = "hello world"
@@ -1,6 +1,6 @@
1
1
  require 'test_helper'
2
2
 
3
- class TestAnyInstanceOf < MiniTest::Unit::TestCase
3
+ class TestAnyInstanceOf < Minitest::Test
4
4
  class Foo
5
5
  def bar
6
6
  "foobar"
@@ -1,6 +1,6 @@
1
1
  require 'test_helper'
2
2
 
3
- class TestMocking < MiniTest::Unit::TestCase
3
+ class TestMocking < Minitest::Test
4
4
  def teardown
5
5
  Spy::Agency.instance.dissolve!
6
6
  end
@@ -1,6 +1,6 @@
1
1
  require 'test_helper'
2
2
 
3
- class TestSpy < MiniTest::Unit::TestCase
3
+ class TestSpy < Minitest::Test
4
4
  def setup
5
5
  @pen = Pen.new
6
6
  end
@@ -1,7 +1,7 @@
1
1
  require 'test_helper'
2
2
 
3
3
  module Spy
4
- class TestMock < MiniTest::Unit::TestCase
4
+ class TestMock < Minitest::Test
5
5
  class BluePen < Pen
6
6
  def write_hello(other)
7
7
  end
@@ -1,7 +1,7 @@
1
1
  require 'test_helper'
2
2
 
3
3
  module Spy
4
- class TestSubroutine < MiniTest::Unit::TestCase
4
+ class TestSubroutine < Minitest::Test
5
5
  def spy_on(base_object, method_name)
6
6
  Subroutine.new(base_object, method_name).hook
7
7
  end
metadata CHANGED
@@ -1,97 +1,97 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
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-28 00:00:00.000000000 Z
11
+ date: 2015-05-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '>='
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: pry-nav
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: minitest
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '>='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: 4.5.0
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '>='
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: 4.5.0
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rspec-core
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - '>='
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - '>='
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rspec-expectations
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - '>='
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - '>='
80
+ - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: coveralls
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - '>='
87
+ - - ">="
88
88
  - !ruby/object:Gem::Version
89
89
  version: '0'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - '>='
94
+ - - ">="
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
97
  description: A simple modern mocking library that uses the spy pattern and checks
@@ -102,9 +102,9 @@ executables: []
102
102
  extensions: []
103
103
  extra_rdoc_files: []
104
104
  files:
105
- - .gitignore
106
- - .travis.yml
107
- - .yardopts
105
+ - ".gitignore"
106
+ - ".travis.yml"
107
+ - ".yardopts"
108
108
  - CHANGELOG.md
109
109
  - Gemfile
110
110
  - LICENSE.txt
@@ -159,17 +159,17 @@ require_paths:
159
159
  - lib
160
160
  required_ruby_version: !ruby/object:Gem::Requirement
161
161
  requirements:
162
- - - '>='
162
+ - - ">="
163
163
  - !ruby/object:Gem::Version
164
164
  version: 1.9.3
165
165
  required_rubygems_version: !ruby/object:Gem::Requirement
166
166
  requirements:
167
- - - '>='
167
+ - - ">="
168
168
  - !ruby/object:Gem::Version
169
169
  version: '0'
170
170
  requirements: []
171
171
  rubyforge_project:
172
- rubygems_version: 2.0.3
172
+ rubygems_version: 2.4.5
173
173
  signing_key:
174
174
  specification_version: 4
175
175
  summary: Spy is a mocking library that was made for the modern age. It supports only
@@ -201,3 +201,4 @@ test_files:
201
201
  - test/spy/test_subroutine.rb
202
202
  - test/support/pen.rb
203
203
  - test/test_helper.rb
204
+ has_rdoc: