Skip to content
This repository
  • 5 commits
  • 4 files changed
  • 0 comments
  • 2 contributors
7  History.markdown
Source Rendered
... ...
@@ -1,5 +1,12 @@
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 12
 [full changelog](http://github.com/rspec/rspec-mocks/compare/v2.0.0.beta.22...v2.0.0)
2  lib/rspec/mocks/version.rb
... ...
@@ -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
4  rspec-mocks.gemspec
@@ -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
 
29  spec/rspec/mocks/bug_report_15719_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

No commit comments for this range

Something went wrong with that request. Please try again.