Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

inline arg default

  • Loading branch information...
commit a907d44ed424aaafe8152705aa60b15c2f6feb44 1 parent 690c3ff
David Chelimsky dchelimsky authored
Showing with 1 addition and 2 deletions.
  1. +1 −2  lib/rspec/core/metadata.rb
3  lib/rspec/core/metadata.rb
View
@@ -116,8 +116,7 @@ def relevant_line_numbers(metadata)
end
end
- def apply_condition(key, value, metadata=nil)
- metadata ||= self
+ def apply_condition(key, value, metadata=self)
case value
when Hash
value.all? { |k, v| apply_condition(k, v, metadata[key]) }
Please sign in to comment.
Something went wrong with that request. Please try again.