minitest-rspec_mocks 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,16 +1,16 @@
1
1
  require 'minitest/autorun'
2
2
  require 'rspec/mocks'
3
- require 'minitest/rspec_mocks/version'
3
+ require_relative './rspec_mocks/version'
4
4
 
5
5
  class Object
6
- # remove Minitest's stub method so RSpec's version on BasicObject will work
6
+ # remove MiniTest's stub method so RSpec's version on BasicObject will work
7
7
  if self.method_defined?(:stub) && !defined?(removed_minitest)
8
8
  remove_method :stub
9
9
  removed_minitest = true
10
10
  end
11
11
  end
12
12
 
13
- module Minitest
13
+ module MiniTest
14
14
  module RSpecMocks
15
15
  include RSpec::Mocks::ExampleMethods unless ::RSpec::Mocks::Version::STRING < "3"
16
16
  def before_setup
@@ -6,7 +6,7 @@ require "minitest/autorun"
6
6
  # when we require minitest_spec_mocks, so it doesn't make sense to
7
7
  # have this test.
8
8
  #
9
- # class MinitestWithoutRspecMocksTest < Minitest::Unit::TestCase
9
+ # class MiniTestWithoutRspecMocksTest < MiniTest::Unit::TestCase
10
10
  # def test_it_should_use_minitest_stub
11
11
  # string = "hello"
12
12
  # string.stub(:to_i, 100) do
@@ -15,8 +15,8 @@ require "minitest/autorun"
15
15
  # end
16
16
  # end
17
17
 
18
- class MinitestWithRspecMocksShouldStyleTest < Minitest::Unit::TestCase
19
- include Minitest::RSpecMocks
18
+ class MiniTestWithRspecMocksShouldStyleTest < MiniTest::Unit::TestCase
19
+ include MiniTest::RSpecMocks
20
20
  def test_it_should_use_rspec_stub
21
21
  RSpec::Mocks.configuration.syntax = :should
22
22
  string = "hello"
@@ -26,8 +26,8 @@ class MinitestWithRspecMocksShouldStyleTest < Minitest::Unit::TestCase
26
26
  end
27
27
  end
28
28
 
29
- class MinitestWithRspecMocksExpectStyleTest < Minitest::Unit::TestCase
30
- include Minitest::RSpecMocks
29
+ class MiniTestWithRspecMocksExpectStyleTest < MiniTest::Unit::TestCase
30
+ include MiniTest::RSpecMocks
31
31
  def test_it_should_use_rspec_expect
32
32
  RSpec::Mocks.configuration.syntax = :expect
33
33
  string = "hello"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minitest-rspec_mocks
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-01-23 00:00:00.000000000Z
12
+ date: 2014-02-08 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
16
- requirement: &2166803160 !ruby/object:Gem::Requirement
16
+ requirement: &2173379560 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '1.3'
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *2166803160
24
+ version_requirements: *2173379560
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rake
27
- requirement: &2166802620 !ruby/object:Gem::Requirement
27
+ requirement: &2173379020 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *2166802620
35
+ version_requirements: *2173379020
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: minitest
38
- requirement: &2166801960 !ruby/object:Gem::Requirement
38
+ requirement: &2173378460 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -46,10 +46,10 @@ dependencies:
46
46
  version: '5.3'
47
47
  type: :runtime
48
48
  prerelease: false
49
- version_requirements: *2166801960
49
+ version_requirements: *2173378460
50
50
  - !ruby/object:Gem::Dependency
51
51
  name: rspec-mocks
52
- requirement: &2166801120 !ruby/object:Gem::Requirement
52
+ requirement: &2173377560 !ruby/object:Gem::Requirement
53
53
  none: false
54
54
  requirements:
55
55
  - - ! '>='
@@ -60,7 +60,7 @@ dependencies:
60
60
  version: 3.0.0
61
61
  type: :runtime
62
62
  prerelease: false
63
- version_requirements: *2166801120
63
+ version_requirements: *2173377560
64
64
  description: Use rspec-mocks with minitest. A description of what this does doesn't
65
65
  get longer than that.
66
66
  email: