We never actually need the options here

This commit is contained in:
Jonas Nicklas and Nicklas Ramhöj 2012-06-08 15:10:15 +02:00
parent 555008c747
commit 6cb1b124d5
1 changed files with 0 additions and 2 deletions

View File

@ -33,7 +33,6 @@ module Capybara
# @return [Boolean] If the expression exists
#
def has_selector?(*args)
options = if args.last.is_a?(Hash) then args.last else {} end
synchronize do
results = all(*args)
query(*args).matches_count?(results) or raise Capybara::ExpectationNotMet
@ -52,7 +51,6 @@ module Capybara
# @return [Boolean]
#
def has_no_selector?(*args)
options = if args.last.is_a?(Hash) then args.last else {} end
synchronize do
results = all(*args)
query(*args).matches_count?(results) and raise Capybara::ExpectationNotMet