rspec-mocks 2.0.0.beta.11 → 2.0.0.beta.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/Rakefile CHANGED
@@ -19,10 +19,6 @@ begin
19
19
  #{"*"*50}
20
20
 
21
21
  Thank you for installing #{gem.summary}
22
-
23
- This is beta software. If you are looking
24
- for a supported production release, please
25
- "gem install rspec" (without --pre).
26
22
 
27
23
  #{"*"*50}
28
24
  EOM
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.0.0.beta.11
1
+ 2.0.0.beta.12
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{rspec-mocks}
8
- s.version = "2.0.0.beta.11"
8
+ s.version = "2.0.0.beta.12"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["David Chelimsky", "Chad Humphries"]
12
- s.date = %q{2010-06-06}
12
+ s.date = %q{2010-06-14}
13
13
  s.description = %q{RSpec's 'test double' framework, with support for stubbing and mocking}
14
14
  s.email = %q{dchelimsky@gmail.com;chad.humphries@gmail.com}
15
15
  s.extra_rdoc_files = [
@@ -98,11 +98,7 @@ Gem::Specification.new do |s|
98
98
  s.homepage = %q{http://github.com/rspec/mocks}
99
99
  s.post_install_message = %q{**************************************************
100
100
 
101
- Thank you for installing rspec-mocks-2.0.0.beta.11
102
-
103
- This is beta software. If you are looking
104
- for a supported production release, please
105
- "gem install rspec" (without --pre).
101
+ Thank you for installing rspec-mocks-2.0.0.beta.12
106
102
 
107
103
  **************************************************
108
104
  }
@@ -110,7 +106,7 @@ Gem::Specification.new do |s|
110
106
  s.require_paths = ["lib"]
111
107
  s.rubyforge_project = %q{rspec}
112
108
  s.rubygems_version = %q{1.3.6}
113
- s.summary = %q{rspec-mocks-2.0.0.beta.11}
109
+ s.summary = %q{rspec-mocks-2.0.0.beta.12}
114
110
  s.test_files = [
115
111
  "spec/rspec/mocks/and_yield_spec.rb",
116
112
  "spec/rspec/mocks/any_number_of_times_spec.rb",
@@ -162,15 +158,15 @@ Gem::Specification.new do |s|
162
158
  s.specification_version = 3
163
159
 
164
160
  if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
165
- s.add_development_dependency(%q<rspec-core>, ["= 2.0.0.beta.11"])
166
- s.add_development_dependency(%q<rspec-expectations>, ["= 2.0.0.beta.11"])
161
+ s.add_development_dependency(%q<rspec-core>, ["= 2.0.0.beta.12"])
162
+ s.add_development_dependency(%q<rspec-expectations>, ["= 2.0.0.beta.12"])
167
163
  else
168
- s.add_dependency(%q<rspec-core>, ["= 2.0.0.beta.11"])
169
- s.add_dependency(%q<rspec-expectations>, ["= 2.0.0.beta.11"])
164
+ s.add_dependency(%q<rspec-core>, ["= 2.0.0.beta.12"])
165
+ s.add_dependency(%q<rspec-expectations>, ["= 2.0.0.beta.12"])
170
166
  end
171
167
  else
172
- s.add_dependency(%q<rspec-core>, ["= 2.0.0.beta.11"])
173
- s.add_dependency(%q<rspec-expectations>, ["= 2.0.0.beta.11"])
168
+ s.add_dependency(%q<rspec-core>, ["= 2.0.0.beta.12"])
169
+ s.add_dependency(%q<rspec-expectations>, ["= 2.0.0.beta.12"])
174
170
  end
175
171
  end
176
172
 
@@ -457,6 +457,13 @@ module RSpec
457
457
  @mock.rspec_verify
458
458
  end
459
459
 
460
+ it "should return the stubbed value when stubbed with args and no new value specified" do
461
+ @mock.stub(:msg).with(:arg).and_return(:stub_value)
462
+ @mock.should_receive(:msg).with(:arg)
463
+ @mock.msg(:arg).should equal(:stub_value)
464
+ @mock.rspec_verify
465
+ end
466
+
460
467
  it "should not mess with the stub's yielded values when also mocked" do
461
468
  @mock.stub(:yield_back).and_yield(:stub_value)
462
469
  @mock.should_receive(:yield_back).and_yield(:mock_value)
metadata CHANGED
@@ -7,8 +7,8 @@ version: !ruby/object:Gem::Version
7
7
  - 0
8
8
  - 0
9
9
  - beta
10
- - 11
11
- version: 2.0.0.beta.11
10
+ - 12
11
+ version: 2.0.0.beta.12
12
12
  platform: ruby
13
13
  authors:
14
14
  - David Chelimsky
@@ -17,7 +17,7 @@ autorequire:
17
17
  bindir: bin
18
18
  cert_chain: []
19
19
 
20
- date: 2010-06-06 00:00:00 -04:00
20
+ date: 2010-06-14 00:00:00 -05:00
21
21
  default_executable:
22
22
  dependencies:
23
23
  - !ruby/object:Gem::Dependency
@@ -32,8 +32,8 @@ dependencies:
32
32
  - 0
33
33
  - 0
34
34
  - beta
35
- - 11
36
- version: 2.0.0.beta.11
35
+ - 12
36
+ version: 2.0.0.beta.12
37
37
  type: :development
38
38
  version_requirements: *id001
39
39
  - !ruby/object:Gem::Dependency
@@ -48,8 +48,8 @@ dependencies:
48
48
  - 0
49
49
  - 0
50
50
  - beta
51
- - 11
52
- version: 2.0.0.beta.11
51
+ - 12
52
+ version: 2.0.0.beta.12
53
53
  type: :development
54
54
  version_requirements: *id002
55
55
  description: RSpec's 'test double' framework, with support for stubbing and mocking
@@ -146,11 +146,7 @@ licenses: []
146
146
  post_install_message: |
147
147
  **************************************************
148
148
 
149
- Thank you for installing rspec-mocks-2.0.0.beta.11
150
-
151
- This is beta software. If you are looking
152
- for a supported production release, please
153
- "gem install rspec" (without --pre).
149
+ Thank you for installing rspec-mocks-2.0.0.beta.12
154
150
 
155
151
  **************************************************
156
152
 
@@ -180,7 +176,7 @@ rubyforge_project: rspec
180
176
  rubygems_version: 1.3.6
181
177
  signing_key:
182
178
  specification_version: 3
183
- summary: rspec-mocks-2.0.0.beta.11
179
+ summary: rspec-mocks-2.0.0.beta.12
184
180
  test_files:
185
181
  - spec/rspec/mocks/and_yield_spec.rb
186
182
  - spec/rspec/mocks/any_number_of_times_spec.rb