Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

only one expectation for deprecation warning

  • Loading branch information...
commit 6382119e75b3b446280902e91ac88ac548692046 1 parent 21b299a
@michihuber authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 spec/rspec/mocks/at_least_spec.rb
View
6 spec/rspec/mocks/at_least_spec.rb
@@ -98,7 +98,11 @@ module Mocks
end
context "when sent with 0" do
- before { RSpec::Mocks.should_receive(:warn_deprecation) }
+ before { RSpec::Mocks.stub(:warn_deprecation) }
+ it "outputs a deprecation warning" do
+ RSpec::Mocks.should_receive(:warn_deprecation)
+ @double.should_receive(:do_something).at_least(0).times
+ end
it "passes with at_least(0) with no return if called once" do
@double.should_receive(:do_something).at_least(0).times

0 comments on commit 6382119

Please sign in to comment.
Something went wrong with that request. Please try again.