Permalink
Browse files

renamed matcher to xpath_for

  • Loading branch information...
despo committed Feb 10, 2012
1 parent 7237d7e commit 4ce81e4da461b612661b3a50d110040e6f41f23a
Showing with 3 additions and 3 deletions.
  1. +1 −1 lib/prickle/capybara.rb
  2. +1 −1 lib/prickle/capybara/find.rb
  3. +1 −1 lib/prickle/capybara/match.rb
View
@@ -27,7 +27,7 @@ def element type='*', identifier
private
- def matcher identifier
+ def xpath_for identifier
return identifier.each_pair.to_a.map do |key, value|
"@#{key}='#{value}'"
end.join ' and '
@@ -21,7 +21,7 @@ def method_missing method, *args
end
def find_by_identifier_xpath element, identifier
- "//#{type_of(element)}[#{matcher(identifier)}]"
+ "//#{type_of(element)}[#{xpath_for(identifier)}]"
end
def find_element_by_identifier element, identifier
@@ -19,7 +19,7 @@ def method_missing method, *args
private
def find_by_name_and_text_xpath element, identifier, text
- "//#{type_of(element)}[#{matcher(identifier)} and contains(text(), '#{text}')]"
+ "//#{type_of(element)}[#{xpath_for(identifier)} and contains(text(), '#{text}')]"
end
def find_element_by_name_and_text element, name, text

0 comments on commit 4ce81e4

Please sign in to comment.