Closed twalpole closed 5 years ago
Ok, you'll need a spec for this, also consider not everything responds to empty?
...
@JonRowe At that point args.last is guaranteed to be a Hash so it is guaranteed to respond to empty?
and there is a spec already in the PR.
@JonRowe - Just a friendly ping
Sorry for the late review. This patch looks good to me. Because we do Hash === args.last
as the first condition we are sure arg.last.empty?
is done on the proper type. Also @JonRowe I don't understand which test we should add.
For the failing on appveyor. It is unrelated. https://ci.appveyor.com/project/rspec/rspec-support/builds/23996036/job/egb1o129jo145r0t
Thanks :)
This fixes issue #374