Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 3d8d5e0ed2
Fetching contributors…

Cannot retrieve contributors at this time

15 lines (11 sloc) 0.383 kB
include Accidentally
describe Accidentally::MethodInvoker do
it "should invoke a simple no args method" do
r = MethodInvoker.invoke [], :size, []
r.should == InvocationResult.new(0, nil)
end
it "should invoke a no args method that takes a block" do
r = MethodInvoker.invoke [1], :select, []
r.should == InvocationResult.new([1], "{ |x| x }")
end
end
Jump to Line
Something went wrong with that request. Please try again.