Skip to content

Commit

Permalink
Fix warning caused by Nokogiri deprecating CSS::Parser.parse (Aaron P…
Browse files Browse the repository at this point in the history
…atterson) [#176 state:resolved]
  • Loading branch information
brynary committed Feb 24, 2009
1 parent aec889a commit e32a208
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions History.txt
Expand Up @@ -6,6 +6,8 @@

* Bug fixes

* Fix warning caused by Nokogiri deprecating CSS::Parser.parse
(Aaron Patterson)
* Accept do/end blocks in matchers. [#157] (Peter Jaros)
* Quote --chdir option to mongrel_rails to support RAILS_ROOTs with spaces
(T.J. VanSlyke)
Expand Down
2 changes: 1 addition & 1 deletion lib/webrat/core/matchers/have_selector.rb
Expand Up @@ -36,7 +36,7 @@ def tag_inspect
end

def query
Nokogiri::CSS::Parser.parse(@expected.to_s).map do |ast|
Nokogiri::CSS.parse(@expected.to_s).map do |ast|
ast.to_xpath
end.first
end
Expand Down
2 changes: 1 addition & 1 deletion lib/webrat/selenium/matchers/have_tag.rb
Expand Up @@ -43,7 +43,7 @@ def query
selector << "[#{key}='#{value}']"
end

Nokogiri::CSS::Parser.parse(selector).map { |ast| ast.to_xpath }
Nokogiri::CSS.parse(selector).map { |ast| ast.to_xpath }
end
end

Expand Down

0 comments on commit e32a208

Please sign in to comment.