lib/much-stub.rb in much-stub-0.1.9 vs lib/much-stub.rb in much-stub-0.1.10
- old
+ new
@@ -234,10 +234,10 @@
def inspect_call(args)
"`#{@method_name}(#{args.map(&:inspect).join(",")})`"
end
def combined_args(pargs, kargs)
- [*pargs, (kargs.empty? ? nil : kargs)].compact
+ pargs + [(kargs.empty? ? nil : kargs)].compact
end
end
StubError = Class.new(ArgumentError)
NotStubbedError = Class.new(StubError)