Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, 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
View
7 History.markdown
@@ -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)
View
2  lib/rspec/mocks/version.rb
@@ -1,7 +1,7 @@
module RSpec # :nodoc:
module Mocks # :nodoc:
module Version # :nodoc:
- STRING = '2.0.0'
+ STRING = '2.0.1'
end
end
end
View
4 rspec-mocks.gemspec
@@ -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
View
29 spec/rspec/mocks/bug_report_15719_spec.rb
@@ -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.