Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

singleton_class only works on Ruby 1.8, I forgot

  • Loading branch information...
commit acf8bd0759416ef969ae12b353f1791e9f3b6c3b 1 parent 208b0b8
@mcmire mcmire authored
View
2  spec/suites/rspec/functional/mock/mock_spec.rb
@@ -224,7 +224,7 @@ def foo; end
end
it "honors a #to_ary that already exists" do
- subject.singleton_class.class_eval do
+ eigen(subject).class_eval do
def to_ary; []; end
end
mock(subject).foo
View
2  spec/suites/rspec/functional/proxy/proxy_spec.rb
@@ -112,7 +112,7 @@ def foo; end
end
it "honors a #to_ary that already exists" do
- subject.singleton_class.class_eval do
+ eigen(subject).class_eval do
def to_ary; []; end
end
mock.proxy(subject).foo
View
2  spec/suites/rspec/functional/stub/stub_spec.rb
@@ -183,7 +183,7 @@ def foo; end
end
it "honors a #to_ary that already exists" do
- subject.singleton_class.class_eval do
+ eigen(subject).class_eval do
def to_ary; []; end
end
stub(subject).foo
Please sign in to comment.
Something went wrong with that request. Please try again.