Skip to content

Commit

Permalink
Eliminate remaining warnings.
Browse files Browse the repository at this point in the history
- Closes rspec#94.
  • Loading branch information
mvz authored and dchelimsky committed Oct 30, 2011
1 parent 806b14b commit 0081b13
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/rspec/matchers/exist.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ class Exist
include BaseMatcher

def initialize(*args)
@args = args
super(args)
end

def matches?(actual)
super(actual)
predicates = [:exist?, :exists?].select { |p| actual.respond_to?(p) }
existance_values = predicates.map { |p| actual.send(p, *@args) }
existance_values = predicates.map { |p| actual.send(p, *expected) }
uniq_truthy_values = existance_values.map { |v| !!v }.uniq

case uniq_truthy_values.size
Expand Down
2 changes: 1 addition & 1 deletion lib/rspec/matchers/raise_error.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def matches?(given_proc)
rescue Exception => @actual_error
# This clause should be empty, but rcov will not report it as covered
# unless something (anything) is executed within the clause
rcov_error_report = "http://eigenclass.org/hiki.rb?rcov-0.8.0"
"http://eigenclass.org/hiki.rb?rcov-0.8.0"
end

unless negative_expectation?
Expand Down

0 comments on commit 0081b13

Please sign in to comment.