lib/caricature/verification.rb in casualjim-caricature-0.5.0 vs lib/caricature/verification.rb in casualjim-caricature-0.6.0
- old
+ new
@@ -14,10 +14,10 @@
@any_args
end
# constrain this verification to the provided arguments
def with(*args)
- @any_args = false unless args.first == :any
+ @any_args = args.first.is_a?(Symbol) and args.first == :any
@args = args
self
end
# allow any arguments ignore the argument constraint
\ No newline at end of file