rspec-mocks 2.0.0 → 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,8 +1,15 @@
1
1
  ## rspec-mocks release history (incomplete)
2
2
 
3
+ ### 2.0.1 / 2010-10-18
4
+
5
+ [full changelog](http://github.com/rspec/rspec-mocks/compare/v2.0.0...v2.0.1)
6
+
7
+ * Enhancements
8
+ * Make dependencies on other rspec gems consistent across gems
9
+
3
10
  ### 2.0.0 / 2010-10-10
4
11
 
5
- [full changelog](http://github.com/rspec/rspec-expectations/compare/v2.0.0.beta.22...v2.0.0)
12
+ [full changelog](http://github.com/rspec/rspec-mocks/compare/v2.0.0.beta.22...v2.0.0)
6
13
 
7
14
  ### 2.0.0.rc / 2010-10-05
8
15
 
@@ -1,7 +1,7 @@
1
1
  module RSpec # :nodoc:
2
2
  module Mocks # :nodoc:
3
3
  module Version # :nodoc:
4
- STRING = '2.0.0'
4
+ STRING = '2.0.1'
5
5
  end
6
6
  end
7
7
  end
@@ -22,7 +22,7 @@ Gem::Specification.new do |s|
22
22
  s.rdoc_options = ["--charset=UTF-8"]
23
23
  s.require_path = "lib"
24
24
 
25
- s.add_dependency "rspec-core", RSpec::Mocks::Version::STRING
26
- s.add_dependency "rspec-expectations", RSpec::Mocks::Version::STRING
25
+ s.add_dependency "rspec-core", "~> 2.0.1"
26
+ s.add_dependency "rspec-expectations", "~> 2.0.1"
27
27
  end
28
28
 
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-mocks
3
3
  version: !ruby/object:Gem::Version
4
+ hash: 13
4
5
  prerelease: false
5
6
  segments:
6
7
  - 2
7
8
  - 0
8
- - 0
9
- version: 2.0.0
9
+ - 1
10
+ version: 2.0.1
10
11
  platform: ruby
11
12
  authors:
12
13
  - David Chelimsky
@@ -15,39 +16,41 @@ autorequire:
15
16
  bindir: bin
16
17
  cert_chain: []
17
18
 
18
- date: 2010-10-10 00:00:00 -05:00
19
+ date: 2010-10-18 00:00:00 -05:00
19
20
  default_executable:
20
21
  dependencies:
21
22
  - !ruby/object:Gem::Dependency
22
- name: rspec-core
23
- requirement: &id001 !ruby/object:Gem::Requirement
23
+ version_requirements: &id001 !ruby/object:Gem::Requirement
24
24
  none: false
25
25
  requirements:
26
- - - "="
26
+ - - ~>
27
27
  - !ruby/object:Gem::Version
28
+ hash: 13
28
29
  segments:
29
30
  - 2
30
31
  - 0
31
- - 0
32
- version: 2.0.0
32
+ - 1
33
+ version: 2.0.1
34
+ requirement: *id001
33
35
  type: :runtime
36
+ name: rspec-core
34
37
  prerelease: false
35
- version_requirements: *id001
36
38
  - !ruby/object:Gem::Dependency
37
- name: rspec-expectations
38
- requirement: &id002 !ruby/object:Gem::Requirement
39
+ version_requirements: &id002 !ruby/object:Gem::Requirement
39
40
  none: false
40
41
  requirements:
41
- - - "="
42
+ - - ~>
42
43
  - !ruby/object:Gem::Version
44
+ hash: 13
43
45
  segments:
44
46
  - 2
45
47
  - 0
46
- - 0
47
- version: 2.0.0
48
+ - 1
49
+ version: 2.0.1
50
+ requirement: *id002
48
51
  type: :runtime
52
+ name: rspec-expectations
49
53
  prerelease: false
50
- version_requirements: *id002
51
54
  description: RSpec's 'test double' framework, with support for stubbing and mocking
52
55
  email: dchelimsky@gmail.com;chad.humphries@gmail.com
53
56
  executables: []
@@ -105,7 +108,6 @@ files:
105
108
  - spec/rspec/mocks/bug_report_10260_spec.rb
106
109
  - spec/rspec/mocks/bug_report_10263_spec.rb
107
110
  - spec/rspec/mocks/bug_report_11545_spec.rb
108
- - spec/rspec/mocks/bug_report_15719_spec.rb
109
111
  - spec/rspec/mocks/bug_report_496_spec.rb
110
112
  - spec/rspec/mocks/bug_report_600_spec.rb
111
113
  - spec/rspec/mocks/bug_report_7611_spec.rb
@@ -155,7 +157,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
155
157
  requirements:
156
158
  - - ">="
157
159
  - !ruby/object:Gem::Version
158
- hash: -3165430952158630133
160
+ hash: 3
159
161
  segments:
160
162
  - 0
161
163
  version: "0"
@@ -164,7 +166,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
164
166
  requirements:
165
167
  - - ">="
166
168
  - !ruby/object:Gem::Version
167
- hash: -3165430952158630133
169
+ hash: 3
168
170
  segments:
169
171
  - 0
170
172
  version: "0"
@@ -174,7 +176,7 @@ rubyforge_project: rspec
174
176
  rubygems_version: 1.3.7
175
177
  signing_key:
176
178
  specification_version: 3
177
- summary: rspec-mocks-2.0.0
179
+ summary: rspec-mocks-2.0.1
178
180
  test_files:
179
181
  - features/README.markdown
180
182
  - features/message_expectations/block_local_expectations.feature.pending
@@ -194,7 +196,6 @@ test_files:
194
196
  - spec/rspec/mocks/bug_report_10260_spec.rb
195
197
  - spec/rspec/mocks/bug_report_10263_spec.rb
196
198
  - spec/rspec/mocks/bug_report_11545_spec.rb
197
- - spec/rspec/mocks/bug_report_15719_spec.rb
198
199
  - spec/rspec/mocks/bug_report_496_spec.rb
199
200
  - spec/rspec/mocks/bug_report_600_spec.rb
200
201
  - spec/rspec/mocks/bug_report_7611_spec.rb
@@ -1,29 +0,0 @@
1
- require 'spec_helper'
2
-
3
- module RSpec
4
- module Mocks
5
- describe "mock failure" do
6
-
7
- it "tells you when it receives the right message with the wrong args" do
8
- double = double("foo")
9
- double.should_receive(:bar).with("message")
10
- lambda {
11
- double.bar("different message")
12
- }.should raise_error(RSpec::Mocks::MockExpectationError, %Q{Double "foo" received :bar with unexpected arguments\n expected: ("message")\n got: ("different message")})
13
- double.rspec_reset # so the example doesn't fail
14
- end
15
-
16
- pending "tells you when it receives the right message with the wrong args if you stub the method (fix bug 15719)" do
17
- # NOTE - for whatever reason, if you use a the block style of pending here,
18
- # rcov gets unhappy. Don't know why yet.
19
- double = double("foo")
20
- double.stub(:bar)
21
- double.should_receive(:bar).with("message")
22
- lambda {
23
- double.bar("different message")
24
- }.should raise_error(RSpec::Mocks::MockExpectationError, %Q{Double 'foo' expected :bar with ("message") but received it with ("different message")})
25
- double.rspec_reset # so the example doesn't fail
26
- end
27
- end
28
- end
29
- end