Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

We’re showing branches in this repository, but you can also compare across forks.

base fork: rspec/rspec-mocks
...
head fork: rspec/rspec-mocks
  • 5 commits
  • 4 files changed
  • 0 commit comments
  • 2 contributors
7 History.markdown
View
@@ -1,5 +1,12 @@
## rspec-mocks release history (incomplete)
+### 2.0.1 / 2010-10-18
+
+[full changelog](http://github.com/rspec/rspec-mocks/compare/v2.0.0...v2.0.1)
+
+* Enhancements
+ * Make dependencies on other rspec gems consistent across gems
+
### 2.0.0 / 2010-10-10
[full changelog](http://github.com/rspec/rspec-mocks/compare/v2.0.0.beta.22...v2.0.0)
2  lib/rspec/mocks/version.rb
View
@@ -1,7 +1,7 @@
module RSpec # :nodoc:
module Mocks # :nodoc:
module Version # :nodoc:
- STRING = '2.0.0'
+ STRING = '2.0.1'
end
end
end
4 rspec-mocks.gemspec
View
@@ -22,7 +22,7 @@ Gem::Specification.new do |s|
s.rdoc_options = ["--charset=UTF-8"]
s.require_path = "lib"
- s.add_dependency "rspec-core", RSpec::Mocks::Version::STRING
- s.add_dependency "rspec-expectations", RSpec::Mocks::Version::STRING
+ s.add_dependency "rspec-core", "~> 2.0.1"
+ s.add_dependency "rspec-expectations", "~> 2.0.1"
end
29 spec/rspec/mocks/bug_report_15719_spec.rb
View
@@ -1,29 +0,0 @@
-require 'spec_helper'
-
-module RSpec
- module Mocks
- describe "mock failure" do
-
- it "tells you when it receives the right message with the wrong args" do
- double = double("foo")
- double.should_receive(:bar).with("message")
- lambda {
- double.bar("different message")
- }.should raise_error(RSpec::Mocks::MockExpectationError, %Q{Double "foo" received :bar with unexpected arguments\n expected: ("message")\n got: ("different message")})
- double.rspec_reset # so the example doesn't fail
- end
-
- pending "tells you when it receives the right message with the wrong args if you stub the method (fix bug 15719)" do
- # NOTE - for whatever reason, if you use a the block style of pending here,
- # rcov gets unhappy. Don't know why yet.
- double = double("foo")
- double.stub(:bar)
- double.should_receive(:bar).with("message")
- lambda {
- double.bar("different message")
- }.should raise_error(RSpec::Mocks::MockExpectationError, %Q{Double 'foo' expected :bar with ("message") but received it with ("different message")})
- double.rspec_reset # so the example doesn't fail
- end
- end
- end
-end

No commit comments for this range

Something went wrong with that request. Please try again.