lib/mspec/mocks/proxy.rb in mspec-1.5.0 vs lib/mspec/mocks/proxy.rb in mspec-1.5.1
- old
+ new
@@ -86,9 +86,12 @@
end
def with(*args)
raise ArgumentError, "you must specify the expected arguments" if args.empty?
@arguments = *args
+ if RUBY_VERSION >= '1.9'
+ @arguments = @arguments.first if @arguments.length <= 1
+ end
self
end
def and_return(*args)
case args.size