Fix warning caused by Nokogiri deprecating CSS::Parser.parse (Aaron Patterson) [#176 state:resolved]

This commit is contained in:
Bryan Helmkamp 2009-02-23 22:18:41 -05:00
parent aec889a14d
commit e32a208b7f
3 changed files with 4 additions and 2 deletions

View File

@ -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)

View File

@ -36,7 +36,7 @@ module Webrat
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

View File

@ -43,7 +43,7 @@ module Webrat
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