Skip to content

Commit

Permalink
rcov likes this on one line (grrrr)
Browse files Browse the repository at this point in the history
  • Loading branch information
dchelimsky committed Jan 5, 2010
1 parent 3e0c5a1 commit 6e17e73
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/spec/matchers/matcher.rb
Expand Up @@ -98,9 +98,7 @@ def cache(key, &block)
end

def call_cached(key)
@messages[key].arity == 1 ?
@messages[key].call(@actual) :
@messages[key].call
@messages[key].arity == 1 ? @messages[key].call(@actual) : @messages[key].call
end

def name_to_sentence
Expand Down

0 comments on commit 6e17e73

Please sign in to comment.