lib/watirspec/implementation.rb in watir-6.0.2 vs lib/watirspec/implementation.rb in watir-6.0.3
- old
+ new
@@ -22,10 +22,10 @@
args.include? name
end
def matching_guards_in(guards)
result = []
- guards.each { |args, data| data.each { |d| result << d } if matches_guard?(args) }
+ guards.each { |args, data| data.each { |d| result << d } if args.empty? || matches_guard?(args) }
result
end
end # Implementation