Permalink
Browse files

singleton_class only works on Ruby 1.8, I forgot

  • Loading branch information...
mcmire committed Mar 23, 2013
1 parent 208b0b8 commit acf8bd0759416ef969ae12b353f1791e9f3b6c3b
@@ -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
@@ -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
@@ -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

0 comments on commit acf8bd0

Please sign in to comment.