rspec-mocks 2.0.0.a1 → 2.0.0.a2

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -3,4 +3,3 @@
3
3
  coverage
4
4
  rdoc
5
5
  pkg
6
- rspec-mocks.gemspec
data/Rakefile CHANGED
@@ -1,37 +1,51 @@
1
1
  require 'rubygems'
2
2
  require 'rake'
3
3
 
4
+ $:.unshift File.expand_path(File.join(File.dirname(__FILE__),'lib'))
5
+
6
+ require 'rspec/mocks/version'
7
+
4
8
  begin
5
9
  require 'jeweler'
6
10
  Jeweler::Tasks.new do |gem|
7
11
  gem.name = "rspec-mocks"
12
+ gem.version = Rspec::Mocks::Version::STRING
8
13
  gem.summary = "rspec-mocks"
9
14
  gem.email = "dchelimsky@gmail.com;chad.humphries@gmail.com"
10
15
  gem.homepage = "http://github.com/rspec/mocks"
11
16
  gem.authors = ["David Chelimsky", "Chad Humphries"]
12
- gem.add_development_dependency('rspec-core', '>= 2.0.0.a1')
13
- gem.add_development_dependency('rspec-expectations', '>= 2.0.0.a1')
17
+ gem.add_development_dependency('rspec-core', ">= #{Rspec::Mocks::Version::STRING}")
18
+ gem.add_development_dependency('rspec-expectations', ">= #{Rspec::Mocks::Version::STRING}")
19
+ gem.add_development_dependency('mocha')
20
+ gem.add_development_dependency('flexmock')
21
+ gem.add_development_dependency('rr')
14
22
  # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
15
23
  end
16
-
24
+ Jeweler::GemcutterTasks.new
17
25
  rescue LoadError
18
- puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
26
+ puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
19
27
  end
20
28
 
21
- $:.unshift File.join(File.dirname(__FILE__), "/../core/lib")
22
- require 'rspec/core/rake_task'
23
- Rspec::Core::RakeTask.new(:spec) do |spec|
24
- spec.pattern = 'spec/**/*_spec.rb'
25
- end
29
+ begin
30
+ require 'rspec/core/rake_task'
31
+ Rspec::Core::RakeTask.new(:spec) do |spec|
32
+ spec.pattern = 'spec/**/*_spec.rb'
33
+ end
26
34
 
27
- Rspec::Core::RakeTask.new(:rcov) do |spec|
28
- spec.pattern = 'spec/**/*_spec.rb'
29
- spec.rcov = true
30
- spec.rcov_opts = %[--exclude "core,expectations,gems/*,spec/resources,spec/spec,spec/spec_helper.rb,db/*,/Library/Ruby/*,config/*" --text-summary --sort coverage]
35
+ Rspec::Core::RakeTask.new(:rcov) do |spec|
36
+ spec.pattern = 'spec/**/*_spec.rb'
37
+ spec.rcov = true
38
+ spec.rcov_opts = %[--exclude "core,expectations,gems/*,spec/resources,spec/spec,spec/spec_helper.rb,db/*,/Library/Ruby/*,config/*" --text-summary --sort coverage]
39
+ end
40
+ rescue LoadError
41
+ puts "Rspec core or one of its dependencies is not installed. Install it with: gem install rspec-meta"
31
42
  end
32
43
 
44
+ task :clobber do
45
+ rm_rf 'pkg'
46
+ end
33
47
 
34
- task :default => :spec
48
+ task :default => [:check_dependencies, :spec]
35
49
 
36
50
  require 'rake/rdoctask'
37
51
  Rake::RDocTask.new do |rdoc|
@@ -1,5 +1,6 @@
1
1
  require 'rspec/mocks/framework'
2
2
  require 'rspec/mocks/extensions/object'
3
+ require 'rspec/mocks/version'
3
4
 
4
5
  module Rspec
5
6
  # == Mocks and Stubs
@@ -28,6 +28,7 @@ module Rspec
28
28
  @failed_fast = nil
29
29
  @args_to_yield_were_cloned = false
30
30
  @return_block = implementation
31
+ @eval_context = nil
31
32
  end
32
33
 
33
34
  def build_child(expected_from, method_block, expected_received_count, opts={})
@@ -80,12 +81,19 @@ module Rspec
80
81
  @symbol_to_throw = symbol
81
82
  end
82
83
 
83
- def and_yield(*args)
84
+ def and_yield(*args, &block)
84
85
  if @args_to_yield_were_cloned
85
86
  @args_to_yield.clear
86
87
  @args_to_yield_were_cloned = false
87
88
  end
88
89
 
90
+ if block
91
+ require 'rspec/core/extensions/instance_exec'
92
+ @eval_context = Object.new
93
+ @eval_context.extend Rspec::Core::InstanceExec
94
+ yield @eval_context
95
+ end
96
+
89
97
  @args_to_yield << args
90
98
  self
91
99
  end
@@ -107,11 +115,10 @@ module Rspec
107
115
  Kernel::raise @exception_to_raise unless @exception_to_raise.nil?
108
116
  Kernel::throw @symbol_to_throw unless @symbol_to_throw.nil?
109
117
 
110
-
111
118
  if !@method_block.nil?
112
119
  default_return_val = invoke_method_block(args)
113
- elsif @args_to_yield.size > 0
114
- default_return_val = invoke_with_yield(block)
120
+ elsif @args_to_yield.size > 0 || @eval_context
121
+ default_return_val = invoke_with_yield(&block)
115
122
  else
116
123
  default_return_val = nil
117
124
  end
@@ -143,7 +150,7 @@ module Rspec
143
150
  end
144
151
  end
145
152
 
146
- def invoke_with_yield(block)
153
+ def invoke_with_yield(&block)
147
154
  if block.nil?
148
155
  @error_generator.raise_missing_block_error @args_to_yield
149
156
  end
@@ -152,11 +159,19 @@ module Rspec
152
159
  if block.arity > -1 && args_to_yield_this_time.length != block.arity
153
160
  @error_generator.raise_wrong_arity_error args_to_yield_this_time, block.arity
154
161
  end
155
- value = block.call(*args_to_yield_this_time)
162
+ value = eval_block(*args_to_yield_this_time, &block)
156
163
  end
157
164
  value
158
165
  end
159
-
166
+
167
+ def eval_block(*args, &block)
168
+ if @eval_context
169
+ @eval_context.instance_exec(*args, &block)
170
+ else
171
+ block.call(*args)
172
+ end
173
+ end
174
+
160
175
  def invoke_consecutive_return_block(args, block)
161
176
  value = invoke_return_block(args, block)
162
177
  index = [@actual_received_count, value.size-1].min
@@ -0,0 +1,16 @@
1
+ module Rspec # :nodoc:
2
+ module Mocks # :nodoc:
3
+ module Version # :nodoc:
4
+ unless defined?(MAJOR)
5
+ MAJOR = 2
6
+ MINOR = 0
7
+ TINY = 0
8
+ PRE = 'a2'
9
+
10
+ STRING = [MAJOR, MINOR, TINY, PRE].compact.join('.')
11
+
12
+ SUMMARY = "rspec-mocks " + STRING
13
+ end
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,153 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = %q{rspec-mocks}
8
+ s.version = "2.0.0.a2"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["David Chelimsky", "Chad Humphries"]
12
+ s.date = %q{2010-01-24}
13
+ s.email = %q{dchelimsky@gmail.com;chad.humphries@gmail.com}
14
+ s.extra_rdoc_files = [
15
+ "README.markdown"
16
+ ]
17
+ s.files = [
18
+ ".document",
19
+ ".gitignore",
20
+ "License.txt",
21
+ "README.markdown",
22
+ "Rakefile",
23
+ "lib/rspec/mocks.rb",
24
+ "lib/rspec/mocks/argument_expectation.rb",
25
+ "lib/rspec/mocks/argument_matchers.rb",
26
+ "lib/rspec/mocks/error_generator.rb",
27
+ "lib/rspec/mocks/errors.rb",
28
+ "lib/rspec/mocks/extensions.rb",
29
+ "lib/rspec/mocks/extensions/object.rb",
30
+ "lib/rspec/mocks/framework.rb",
31
+ "lib/rspec/mocks/message_expectation.rb",
32
+ "lib/rspec/mocks/methods.rb",
33
+ "lib/rspec/mocks/mock.rb",
34
+ "lib/rspec/mocks/order_group.rb",
35
+ "lib/rspec/mocks/proxy.rb",
36
+ "lib/rspec/mocks/space.rb",
37
+ "lib/rspec/mocks/spec_methods.rb",
38
+ "lib/rspec/mocks/version.rb",
39
+ "lib/spec/mocks.rb",
40
+ "rspec-mocks.gemspec",
41
+ "spec/rspec/mocks/and_yield_spec.rb",
42
+ "spec/rspec/mocks/any_number_of_times_spec.rb",
43
+ "spec/rspec/mocks/argument_expectation_spec.rb",
44
+ "spec/rspec/mocks/at_least_spec.rb",
45
+ "spec/rspec/mocks/at_most_spec.rb",
46
+ "spec/rspec/mocks/bug_report_10260_spec.rb",
47
+ "spec/rspec/mocks/bug_report_10263_spec.rb",
48
+ "spec/rspec/mocks/bug_report_11545_spec.rb",
49
+ "spec/rspec/mocks/bug_report_15719_spec.rb",
50
+ "spec/rspec/mocks/bug_report_496_spec.rb",
51
+ "spec/rspec/mocks/bug_report_600_spec.rb",
52
+ "spec/rspec/mocks/bug_report_7611_spec.rb",
53
+ "spec/rspec/mocks/bug_report_7805_spec.rb",
54
+ "spec/rspec/mocks/bug_report_8165_spec.rb",
55
+ "spec/rspec/mocks/bug_report_8302_spec.rb",
56
+ "spec/rspec/mocks/bug_report_830_spec.rb",
57
+ "spec/rspec/mocks/failing_argument_matchers_spec.rb",
58
+ "spec/rspec/mocks/hash_including_matcher_spec.rb",
59
+ "spec/rspec/mocks/hash_not_including_matcher_spec.rb",
60
+ "spec/rspec/mocks/mock_ordering_spec.rb",
61
+ "spec/rspec/mocks/mock_space_spec.rb",
62
+ "spec/rspec/mocks/mock_spec.rb",
63
+ "spec/rspec/mocks/multiple_return_value_spec.rb",
64
+ "spec/rspec/mocks/nil_expectation_warning_spec.rb",
65
+ "spec/rspec/mocks/null_object_mock_spec.rb",
66
+ "spec/rspec/mocks/once_counts_spec.rb",
67
+ "spec/rspec/mocks/options_hash_spec.rb",
68
+ "spec/rspec/mocks/partial_mock_spec.rb",
69
+ "spec/rspec/mocks/partial_mock_using_mocks_directly_spec.rb",
70
+ "spec/rspec/mocks/passing_argument_matchers_spec.rb",
71
+ "spec/rspec/mocks/precise_counts_spec.rb",
72
+ "spec/rspec/mocks/record_messages_spec.rb",
73
+ "spec/rspec/mocks/stub_chain_spec.rb",
74
+ "spec/rspec/mocks/stub_implementation_spec.rb",
75
+ "spec/rspec/mocks/stub_spec.rb",
76
+ "spec/rspec/mocks/stubbed_message_expectations_spec.rb",
77
+ "spec/rspec/mocks/twice_counts_spec.rb",
78
+ "spec/spec_helper.rb",
79
+ "spec/support/macros.rb"
80
+ ]
81
+ s.homepage = %q{http://github.com/rspec/mocks}
82
+ s.rdoc_options = ["--charset=UTF-8"]
83
+ s.require_paths = ["lib"]
84
+ s.rubygems_version = %q{1.3.5}
85
+ s.summary = %q{rspec-mocks}
86
+ s.test_files = [
87
+ "spec/rspec/mocks/and_yield_spec.rb",
88
+ "spec/rspec/mocks/any_number_of_times_spec.rb",
89
+ "spec/rspec/mocks/argument_expectation_spec.rb",
90
+ "spec/rspec/mocks/at_least_spec.rb",
91
+ "spec/rspec/mocks/at_most_spec.rb",
92
+ "spec/rspec/mocks/bug_report_10260_spec.rb",
93
+ "spec/rspec/mocks/bug_report_10263_spec.rb",
94
+ "spec/rspec/mocks/bug_report_11545_spec.rb",
95
+ "spec/rspec/mocks/bug_report_15719_spec.rb",
96
+ "spec/rspec/mocks/bug_report_496_spec.rb",
97
+ "spec/rspec/mocks/bug_report_600_spec.rb",
98
+ "spec/rspec/mocks/bug_report_7611_spec.rb",
99
+ "spec/rspec/mocks/bug_report_7805_spec.rb",
100
+ "spec/rspec/mocks/bug_report_8165_spec.rb",
101
+ "spec/rspec/mocks/bug_report_8302_spec.rb",
102
+ "spec/rspec/mocks/bug_report_830_spec.rb",
103
+ "spec/rspec/mocks/failing_argument_matchers_spec.rb",
104
+ "spec/rspec/mocks/hash_including_matcher_spec.rb",
105
+ "spec/rspec/mocks/hash_not_including_matcher_spec.rb",
106
+ "spec/rspec/mocks/mock_ordering_spec.rb",
107
+ "spec/rspec/mocks/mock_space_spec.rb",
108
+ "spec/rspec/mocks/mock_spec.rb",
109
+ "spec/rspec/mocks/multiple_return_value_spec.rb",
110
+ "spec/rspec/mocks/nil_expectation_warning_spec.rb",
111
+ "spec/rspec/mocks/null_object_mock_spec.rb",
112
+ "spec/rspec/mocks/once_counts_spec.rb",
113
+ "spec/rspec/mocks/options_hash_spec.rb",
114
+ "spec/rspec/mocks/partial_mock_spec.rb",
115
+ "spec/rspec/mocks/partial_mock_using_mocks_directly_spec.rb",
116
+ "spec/rspec/mocks/passing_argument_matchers_spec.rb",
117
+ "spec/rspec/mocks/precise_counts_spec.rb",
118
+ "spec/rspec/mocks/record_messages_spec.rb",
119
+ "spec/rspec/mocks/stub_chain_spec.rb",
120
+ "spec/rspec/mocks/stub_implementation_spec.rb",
121
+ "spec/rspec/mocks/stub_spec.rb",
122
+ "spec/rspec/mocks/stubbed_message_expectations_spec.rb",
123
+ "spec/rspec/mocks/twice_counts_spec.rb",
124
+ "spec/spec_helper.rb",
125
+ "spec/support/macros.rb"
126
+ ]
127
+
128
+ if s.respond_to? :specification_version then
129
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
130
+ s.specification_version = 3
131
+
132
+ if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
133
+ s.add_development_dependency(%q<rspec-core>, [">= 2.0.0.a2"])
134
+ s.add_development_dependency(%q<rspec-expectations>, [">= 2.0.0.a2"])
135
+ s.add_development_dependency(%q<mocha>, [">= 0"])
136
+ s.add_development_dependency(%q<flexmock>, [">= 0"])
137
+ s.add_development_dependency(%q<rr>, [">= 0"])
138
+ else
139
+ s.add_dependency(%q<rspec-core>, [">= 2.0.0.a2"])
140
+ s.add_dependency(%q<rspec-expectations>, [">= 2.0.0.a2"])
141
+ s.add_dependency(%q<mocha>, [">= 0"])
142
+ s.add_dependency(%q<flexmock>, [">= 0"])
143
+ s.add_dependency(%q<rr>, [">= 0"])
144
+ end
145
+ else
146
+ s.add_dependency(%q<rspec-core>, [">= 2.0.0.a2"])
147
+ s.add_dependency(%q<rspec-expectations>, [">= 2.0.0.a2"])
148
+ s.add_dependency(%q<mocha>, [">= 0"])
149
+ s.add_dependency(%q<flexmock>, [">= 0"])
150
+ s.add_dependency(%q<rr>, [">= 0"])
151
+ end
152
+ end
153
+
@@ -0,0 +1,114 @@
1
+ require 'spec_helper'
2
+ def obj
3
+ @obj ||= mock
4
+ end
5
+
6
+ describe Rspec::Mocks::Mock do
7
+ describe "#and_yield" do
8
+ context "with eval context as block argument" do
9
+
10
+ it "evaluates the supplied block as it is read" do
11
+ evaluated = false
12
+ obj.stub(:method_that_accepts_a_block).and_yield do |eval_context|
13
+ evaluated = true
14
+ end
15
+ evaluated.should be_true
16
+ end
17
+
18
+ it "passes an eval context object to the supplied block" do
19
+ obj.stub(:method_that_accepts_a_block).and_yield do |eval_context|
20
+ eval_context.should_not be_nil
21
+ end
22
+ end
23
+
24
+ it "evaluates the block passed to the stubbed method in the context of the supplied eval context" do
25
+ expected_eval_context = nil
26
+ actual_eval_context = nil
27
+
28
+ obj.stub(:method_that_accepts_a_block).and_yield do |eval_context|
29
+ expected_eval_context = eval_context
30
+ end
31
+
32
+ obj.method_that_accepts_a_block do
33
+ actual_eval_context = self
34
+ end
35
+
36
+ actual_eval_context.should equal(expected_eval_context)
37
+ end
38
+
39
+ context "and no yielded arguments" do
40
+
41
+ it "passes when expectations set on the eval context are met" do
42
+ configured_eval_context = nil
43
+ obj.stub(:method_that_accepts_a_block).and_yield do |eval_context|
44
+ configured_eval_context = eval_context
45
+ configured_eval_context.should_receive(:foo)
46
+ end
47
+
48
+ obj.method_that_accepts_a_block do
49
+ foo
50
+ end
51
+
52
+ configured_eval_context.rspec_verify
53
+ end
54
+
55
+ it "fails when expectations set on the eval context are not met" do
56
+ configured_eval_context = nil
57
+ obj.stub(:method_that_accepts_a_block).and_yield do |eval_context|
58
+ configured_eval_context = eval_context
59
+ configured_eval_context.should_receive(:foo)
60
+ end
61
+
62
+ obj.method_that_accepts_a_block do
63
+ # foo is not called here
64
+ end
65
+
66
+ lambda {configured_eval_context.rspec_verify}.should raise_error(Rspec::Mocks::MockExpectationError)
67
+ end
68
+
69
+ end
70
+
71
+ context "and yielded arguments" do
72
+
73
+ it "passes when expectations set on the eval context and yielded arguments are met" do
74
+ configured_eval_context = nil
75
+ yielded_arg = Object.new
76
+ obj.stub(:method_that_accepts_a_block).and_yield(yielded_arg) do |eval_context|
77
+ configured_eval_context = eval_context
78
+ configured_eval_context.should_receive(:foo)
79
+ yielded_arg.should_receive(:bar)
80
+ end
81
+
82
+ obj.method_that_accepts_a_block do |obj|
83
+ obj.bar
84
+ foo
85
+ end
86
+
87
+ configured_eval_context.rspec_verify
88
+ yielded_arg.rspec_verify
89
+ end
90
+
91
+ it "fails when expectations set on the eval context and yielded arguments are not met" do
92
+ configured_eval_context = nil
93
+ yielded_arg = Object.new
94
+ obj.stub(:method_that_accepts_a_block).and_yield(yielded_arg) do |eval_context|
95
+ configured_eval_context = eval_context
96
+ configured_eval_context.should_receive(:foo)
97
+ yielded_arg.should_receive(:bar)
98
+ end
99
+
100
+ obj.method_that_accepts_a_block do |obj|
101
+ # obj.bar is not called here
102
+ # foo is not called here
103
+ end
104
+
105
+ lambda {configured_eval_context.rspec_verify}.should raise_error(Rspec::Mocks::MockExpectationError)
106
+ lambda {yielded_arg.rspec_verify}.should raise_error(Rspec::Mocks::MockExpectationError)
107
+ end
108
+
109
+ end
110
+
111
+ end
112
+ end
113
+ end
114
+
@@ -1,8 +1,8 @@
1
- $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '/../../core/lib'))
1
+ $LOAD_PATH.unshift(File.expand_path('../../../rspec-core/lib', __FILE__))
2
2
  require 'rspec/core'
3
- $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '/../lib'))
3
+ $LOAD_PATH.unshift(File.expand_path('../../lib', __FILE__))
4
4
  require 'rspec/mocks'
5
- $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '/../../expectations/lib'))
5
+ $LOAD_PATH.unshift(File.expand_path('../../../rspec-expectations/lib', __FILE__))
6
6
  require 'rspec/expectations'
7
7
 
8
8
  module Macros
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-mocks
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0.a1
4
+ version: 2.0.0.a2
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Chelimsky
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2009-09-16 00:00:00 -04:00
13
+ date: 2010-01-24 00:00:00 -06:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
@@ -21,7 +21,7 @@ dependencies:
21
21
  requirements:
22
22
  - - ">="
23
23
  - !ruby/object:Gem::Version
24
- version: 2.0.0.a1
24
+ version: 2.0.0.a2
25
25
  version:
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: rspec-expectations
@@ -31,7 +31,37 @@ dependencies:
31
31
  requirements:
32
32
  - - ">="
33
33
  - !ruby/object:Gem::Version
34
- version: 2.0.0.a1
34
+ version: 2.0.0.a2
35
+ version:
36
+ - !ruby/object:Gem::Dependency
37
+ name: mocha
38
+ type: :development
39
+ version_requirement:
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ requirements:
42
+ - - ">="
43
+ - !ruby/object:Gem::Version
44
+ version: "0"
45
+ version:
46
+ - !ruby/object:Gem::Dependency
47
+ name: flexmock
48
+ type: :development
49
+ version_requirement:
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: "0"
55
+ version:
56
+ - !ruby/object:Gem::Dependency
57
+ name: rr
58
+ type: :development
59
+ version_requirement:
60
+ version_requirements: !ruby/object:Gem::Requirement
61
+ requirements:
62
+ - - ">="
63
+ - !ruby/object:Gem::Version
64
+ version: "0"
35
65
  version:
36
66
  description:
37
67
  email: dchelimsky@gmail.com;chad.humphries@gmail.com
@@ -47,8 +77,6 @@ files:
47
77
  - License.txt
48
78
  - README.markdown
49
79
  - Rakefile
50
- - VERSION
51
- - VERSION.yml
52
80
  - lib/rspec/mocks.rb
53
81
  - lib/rspec/mocks/argument_expectation.rb
54
82
  - lib/rspec/mocks/argument_matchers.rb
@@ -64,7 +92,10 @@ files:
64
92
  - lib/rspec/mocks/proxy.rb
65
93
  - lib/rspec/mocks/space.rb
66
94
  - lib/rspec/mocks/spec_methods.rb
95
+ - lib/rspec/mocks/version.rb
67
96
  - lib/spec/mocks.rb
97
+ - rspec-mocks.gemspec
98
+ - spec/rspec/mocks/and_yield_spec.rb
68
99
  - spec/rspec/mocks/any_number_of_times_spec.rb
69
100
  - spec/rspec/mocks/argument_expectation_spec.rb
70
101
  - spec/rspec/mocks/at_least_spec.rb
@@ -120,9 +151,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
120
151
  version:
121
152
  required_rubygems_version: !ruby/object:Gem::Requirement
122
153
  requirements:
123
- - - ">="
154
+ - - ">"
124
155
  - !ruby/object:Gem::Version
125
- version: "0"
156
+ version: 1.3.1
126
157
  version:
127
158
  requirements: []
128
159
 
@@ -132,6 +163,7 @@ signing_key:
132
163
  specification_version: 3
133
164
  summary: rspec-mocks
134
165
  test_files:
166
+ - spec/rspec/mocks/and_yield_spec.rb
135
167
  - spec/rspec/mocks/any_number_of_times_spec.rb
136
168
  - spec/rspec/mocks/argument_expectation_spec.rb
137
169
  - spec/rspec/mocks/at_least_spec.rb
data/VERSION DELETED
@@ -1 +0,0 @@
1
- 2.0.0.a1
@@ -1,5 +0,0 @@
1
- ---
2
- :major: 2
3
- :minor: 0
4
- :patch: 0
5
- :build: a1