Browse files

inline arg default

  • Loading branch information...
1 parent 690c3ff commit a907d44ed424aaafe8152705aa60b15c2f6feb44 @dchelimsky dchelimsky committed Nov 13, 2010
Showing with 1 addition and 2 deletions.
  1. +1 −2 lib/rspec/core/metadata.rb
View
3 lib/rspec/core/metadata.rb
@@ -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]) }

0 comments on commit a907d44

Please sign in to comment.