bourne 1.4.0 → 1.5.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ OTMzNjdmNjM1YzE3NWM1Yzg5Mzc1ZmVmMzNiNjgyZDQ4ZTBlNGU3Yw==
5
+ data.tar.gz: !binary |-
6
+ OTAxZTYyNzY0YTMxYWM3MjBmODZhOWIxOGYyN2M3NzMxNzAzYjVmOA==
7
+ !binary "U0hBNTEy":
8
+ metadata.gz: !binary |-
9
+ NzI1N2IxNGMzMmQ5YTQ5ZTkxNzdhZmQ4YmVjMzcwZDk1ZWUwMmIzNzQ5MGM1
10
+ ZTUyZmJhODBkMjdlNDg0MzQxZWVhNDY2NDQ3ZDFmOGU1ZDBlZGZlZWY4YmFl
11
+ YzJiMDQwODQzODViMDFkY2U2NzJjYjBjNzhiYjBjNGU4MzU2YjI=
12
+ data.tar.gz: !binary |-
13
+ OWFhYjdkZjZjZTU5MjE4Y2I4OTIxNTEwY2I0ZTVhYzAyYzQ4MWZhNWU4ZWYz
14
+ MGVmYmI2NmYxNGJjYWQ3OWNmYjJmOTljOThlZDAzYmZmNDZjNDEzYzc5NWY2
15
+ YWJmMTIzMjM5OTYyZWJhYzdiYTcwMTFmZjg4NjkzZGEzN2M2ODg=
@@ -1,6 +1,11 @@
1
1
  rvm:
2
+ - 2.0.0
2
3
  - 1.9.3
3
4
  - 1.9.2
4
5
  - 1.8.7
5
6
  - rbx-18mode
6
7
  - rbx-19mode
8
+
9
+ matrix:
10
+ allow_failures:
11
+ - rvm: rbx-19mode
@@ -20,7 +20,8 @@ Gem::Specification.new do |s|
20
20
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
21
21
  s.require_paths = ["lib"]
22
22
 
23
- s.add_dependency('mocha', '~> 0.13.2') # follow instructions in mock.rb to update
23
+ # Follow instructions in test/unit/mock_test.rb to update.
24
+ s.add_dependency('mocha', '>= 0.13.2', '< 0.15')
24
25
 
25
26
  s.add_development_dependency('rake')
26
27
  end
@@ -1,3 +1,3 @@
1
1
  module Bourne
2
- VERSION = '1.4.0'.freeze
2
+ VERSION = '1.5.0'.freeze
3
3
  end
@@ -49,9 +49,9 @@ class MockTest < Test::Unit::TestCase
49
49
  end
50
50
 
51
51
  if RUBY_VERSION < '1.9'
52
- OBJECT_METHODS = STANDARD_OBJECT_PUBLIC_INSTANCE_METHODS.reject { |m| m =~ /^__.*__$/ }
52
+ OBJECT_METHODS = STANDARD_OBJECT_PUBLIC_INSTANCE_METHODS.reject { |m| m =~ /^__.*__$/ || ["method_missing", "singleton_method_undefined", "initialize"].include?(m)}
53
53
  else
54
- OBJECT_METHODS = STANDARD_OBJECT_PUBLIC_INSTANCE_METHODS.reject { |m| m =~ /^__.*__$/ || m == :object_id }
54
+ OBJECT_METHODS = STANDARD_OBJECT_PUBLIC_INSTANCE_METHODS.reject { |m| m =~ /^__.*__$/ || [:object_id, :method_missing, :singleton_method_undefined, :initialize, :String, :singleton_method_added].include?(m) }
55
55
  end
56
56
 
57
57
  def test_should_be_able_to_mock_standard_object_methods
@@ -32,14 +32,14 @@ class MockeryTest < Test::Unit::TestCase
32
32
  mock_2 = mockery.named_mock('mock-2') { expects(:method_2) }
33
33
  1.times { mock_1.method_1 }
34
34
  0.times { mock_2.method_2 }
35
- assert_raises(ExpectationError) { mockery.verify }
35
+ assert_raises(ExpectationErrorFactory.exception_class) { mockery.verify }
36
36
  end
37
37
 
38
38
  def test_should_reset_list_of_mocks_on_teardown
39
39
  mockery = Mockery.new
40
40
  mock = mockery.unnamed_mock { expects(:my_method) }
41
41
  mockery.teardown
42
- assert_nothing_raised(ExpectationError) { mockery.verify }
42
+ assert_nothing_raised(ExpectationErrorFactory.exception_class) { mockery.verify }
43
43
  end
44
44
 
45
45
  def test_should_build_instance_of_stubba_on_instantiation
metadata CHANGED
@@ -1,36 +1,38 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bourne
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
5
- prerelease:
4
+ version: 1.5.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Joe Ferris
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-03-18 00:00:00.000000000 Z
11
+ date: 2013-06-27 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: mocha
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ~>
17
+ - - ! '>='
20
18
  - !ruby/object:Gem::Version
21
19
  version: 0.13.2
20
+ - - <
21
+ - !ruby/object:Gem::Version
22
+ version: '0.15'
22
23
  type: :runtime
23
24
  prerelease: false
24
25
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
26
  requirements:
27
- - - ~>
27
+ - - ! '>='
28
28
  - !ruby/object:Gem::Version
29
29
  version: 0.13.2
30
+ - - <
31
+ - !ruby/object:Gem::Version
32
+ version: '0.15'
30
33
  - !ruby/object:Gem::Dependency
31
34
  name: rake
32
35
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
36
  requirements:
35
37
  - - ! '>='
36
38
  - !ruby/object:Gem::Version
@@ -38,7 +40,6 @@ dependencies:
38
40
  type: :development
39
41
  prerelease: false
40
42
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
43
  requirements:
43
44
  - - ! '>='
44
45
  - !ruby/object:Gem::Version
@@ -83,27 +84,26 @@ files:
83
84
  - test/unit/mockery_test.rb
84
85
  homepage: http://github.com/thoughtbot/bourne
85
86
  licenses: []
87
+ metadata: {}
86
88
  post_install_message:
87
89
  rdoc_options: []
88
90
  require_paths:
89
91
  - lib
90
92
  required_ruby_version: !ruby/object:Gem::Requirement
91
- none: false
92
93
  requirements:
93
94
  - - ! '>='
94
95
  - !ruby/object:Gem::Version
95
96
  version: '0'
96
97
  required_rubygems_version: !ruby/object:Gem::Requirement
97
- none: false
98
98
  requirements:
99
99
  - - ! '>='
100
100
  - !ruby/object:Gem::Version
101
101
  version: '0'
102
102
  requirements: []
103
103
  rubyforge_project:
104
- rubygems_version: 1.8.25
104
+ rubygems_version: 2.0.3
105
105
  signing_key:
106
- specification_version: 3
106
+ specification_version: 4
107
107
  summary: Adds test spies to mocha.
108
108
  test_files:
109
109
  - test/acceptance/acceptance_test_helper.rb