minitest-rspec_mocks 0.1.2 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: ec555958f3d7d82a5d2b7363c3d09737aff2f781
4
+ data.tar.gz: 580ed80295ccbf05b31614d650345976f870d654
5
+ SHA512:
6
+ metadata.gz: bba4f1199b2bbb5b9c8d0c4002033ba8538df01b7c0cb211a51a9557b9017d8e978f27f0a6ff20280e7714ce8c56746861c815932383390b43ee7256425fb153
7
+ data.tar.gz: c213daf0809d295b6c598d34151c49914834f6bba4a53b3d096dc0feba343ffeae6dc5a92007c91c4b57ee1a411b5eab4ea56333fcfbfdbc4e1dbf4dccf3e249
@@ -21,7 +21,7 @@ module Minitest
21
21
  end
22
22
  super
23
23
  end
24
-
24
+
25
25
  def after_teardown
26
26
  begin
27
27
  ::RSpec::Mocks.verify
@@ -31,4 +31,4 @@ module Minitest
31
31
  super
32
32
  end
33
33
  end
34
- end
34
+ end
@@ -1,5 +1,5 @@
1
1
  module MiniTest
2
2
  module RSpecMocks
3
- VERSION = "0.1.2"
3
+ VERSION = "0.2.0"
4
4
  end
5
5
  end
@@ -2,6 +2,16 @@ gem 'minitest'
2
2
  require_relative '../../lib/minitest/rspec_mocks'
3
3
  require "minitest/autorun"
4
4
 
5
+ base_class = if MiniTest.const_defined?(:Unit)
6
+ MiniTest::Unit::TestCase
7
+ else
8
+ Minitest::Test
9
+ end
10
+
11
+ class TestBase < base_class
12
+ include Minitest::RSpecMocks
13
+ end
14
+
5
15
  # I am not sure how/if this test ever passed. We remove minitest stub
6
16
  # when we require minitest_spec_mocks, so it doesn't make sense to
7
17
  # have this test.
@@ -15,8 +25,7 @@ require "minitest/autorun"
15
25
  # end
16
26
  # end
17
27
 
18
- class MiniTestWithRspecMocksShouldStyleTest < MiniTest::Unit::TestCase
19
- include MiniTest::RSpecMocks
28
+ class MiniTestWithRspecMocksShouldStyleTest < TestBase
20
29
  def test_it_should_use_rspec_stub
21
30
  RSpec::Mocks.configuration.syntax = :should
22
31
  string = "hello"
@@ -26,8 +35,7 @@ class MiniTestWithRspecMocksShouldStyleTest < MiniTest::Unit::TestCase
26
35
  end
27
36
  end
28
37
 
29
- class MiniTestWithRspecMocksExpectStyleTest < MiniTest::Unit::TestCase
30
- include MiniTest::RSpecMocks
38
+ class MiniTestWithRspecMocksExpectStyleTest < TestBase
31
39
  def test_it_should_use_rspec_expect
32
40
  RSpec::Mocks.configuration.syntax = :expect
33
41
  string = "hello"
metadata CHANGED
@@ -1,66 +1,83 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minitest-rspec_mocks
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
5
- prerelease:
4
+ version: 0.2.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Sammy Larbi
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2014-02-08 00:00:00.000000000Z
11
+ date: 2015-02-21 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: bundler
16
- requirement: &2158567340 !ruby/object:Gem::Requirement
17
- none: false
15
+ requirement: !ruby/object:Gem::Requirement
18
16
  requirements:
19
- - - ~>
17
+ - - "~>"
20
18
  - !ruby/object:Gem::Version
21
19
  version: '1.3'
22
20
  type: :development
23
21
  prerelease: false
24
- version_requirements: *2158567340
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.3'
25
27
  - !ruby/object:Gem::Dependency
26
28
  name: rake
27
- requirement: &2158566920 !ruby/object:Gem::Requirement
28
- none: false
29
+ requirement: !ruby/object:Gem::Requirement
29
30
  requirements:
30
- - - ! '>='
31
+ - - ">="
31
32
  - !ruby/object:Gem::Version
32
33
  version: '0'
33
34
  type: :development
34
35
  prerelease: false
35
- version_requirements: *2158566920
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
36
41
  - !ruby/object:Gem::Dependency
37
42
  name: minitest
38
- requirement: &2158566260 !ruby/object:Gem::Requirement
39
- none: false
43
+ requirement: !ruby/object:Gem::Requirement
40
44
  requirements:
41
- - - ! '>='
45
+ - - ">="
42
46
  - !ruby/object:Gem::Version
43
47
  version: '4.0'
44
- - - <
48
+ - - "<"
45
49
  - !ruby/object:Gem::Version
46
- version: '5.3'
50
+ version: '5.99'
47
51
  type: :runtime
48
52
  prerelease: false
49
- version_requirements: *2158566260
53
+ version_requirements: !ruby/object:Gem::Requirement
54
+ requirements:
55
+ - - ">="
56
+ - !ruby/object:Gem::Version
57
+ version: '4.0'
58
+ - - "<"
59
+ - !ruby/object:Gem::Version
60
+ version: '5.99'
50
61
  - !ruby/object:Gem::Dependency
51
62
  name: rspec-mocks
52
- requirement: &2158565420 !ruby/object:Gem::Requirement
53
- none: false
63
+ requirement: !ruby/object:Gem::Requirement
54
64
  requirements:
55
- - - ! '>='
65
+ - - ">="
56
66
  - !ruby/object:Gem::Version
57
67
  version: '2.14'
58
- - - <=
68
+ - - "<"
59
69
  - !ruby/object:Gem::Version
60
- version: 3.0.0
70
+ version: '3.99'
61
71
  type: :runtime
62
72
  prerelease: false
63
- version_requirements: *2158565420
73
+ version_requirements: !ruby/object:Gem::Requirement
74
+ requirements:
75
+ - - ">="
76
+ - !ruby/object:Gem::Version
77
+ version: '2.14'
78
+ - - "<"
79
+ - !ruby/object:Gem::Version
80
+ version: '3.99'
64
81
  description: Use rspec-mocks with minitest. A description of what this does doesn't
65
82
  get longer than that.
66
83
  email:
@@ -75,27 +92,26 @@ files:
75
92
  homepage: https://github.com/codeodor/minitest-rspec_mocks
76
93
  licenses:
77
94
  - MIT
95
+ metadata: {}
78
96
  post_install_message:
79
97
  rdoc_options: []
80
98
  require_paths:
81
99
  - lib
82
100
  required_ruby_version: !ruby/object:Gem::Requirement
83
- none: false
84
101
  requirements:
85
- - - ! '>='
102
+ - - ">="
86
103
  - !ruby/object:Gem::Version
87
104
  version: '0'
88
105
  required_rubygems_version: !ruby/object:Gem::Requirement
89
- none: false
90
106
  requirements:
91
- - - ! '>='
107
+ - - ">="
92
108
  - !ruby/object:Gem::Version
93
109
  version: '0'
94
110
  requirements: []
95
111
  rubyforge_project:
96
- rubygems_version: 1.8.8
112
+ rubygems_version: 2.4.3
97
113
  signing_key:
98
- specification_version: 3
114
+ specification_version: 4
99
115
  summary: Use rspec-mocks with minitest
100
116
  test_files:
101
117
  - test/minitest/rspec_mocks_test.rb