Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix scoping issue in spec for 1.9.1

  • Loading branch information...
commit b8d9800c1a79a85d35cd378f6ca378af6529e477 1 parent 189fda0
@dchelimsky dchelimsky authored
Showing with 2 additions and 3 deletions.
  1. +2 −3 spec/rspec/mocks/any_instance_spec.rb
View
5 spec/rspec/mocks/any_instance_spec.rb
@@ -5,14 +5,13 @@ module Mocks
describe "#any_instance" do
class CustomErrorForAnyInstanceSpec < StandardError;end
- EXISTING_METHOD_RETURN_VALUE = Object.new
let(:klass) do
Class.new do
- def existing_method; EXISTING_METHOD_RETURN_VALUE; end
+ def existing_method; :existing_method_return_value; end
def another_existing_method; 4; end
end
end
- let(:existing_method_return_value){ EXISTING_METHOD_RETURN_VALUE }
+ let(:existing_method_return_value){ :existing_method_return_value }
context "invocation order" do
context "#stub" do
Please sign in to comment.
Something went wrong with that request. Please try again.