Fix warning caused by Nokogiri deprecating CSS::Parser.parse (Aaron Patterson) [#176 state:resolved]
This commit is contained in:
parent
aec889a14d
commit
e32a208b7f
|
@ -6,6 +6,8 @@
|
||||||
|
|
||||||
* Bug fixes
|
* Bug fixes
|
||||||
|
|
||||||
|
* Fix warning caused by Nokogiri deprecating CSS::Parser.parse
|
||||||
|
(Aaron Patterson)
|
||||||
* Accept do/end blocks in matchers. [#157] (Peter Jaros)
|
* Accept do/end blocks in matchers. [#157] (Peter Jaros)
|
||||||
* Quote --chdir option to mongrel_rails to support RAILS_ROOTs with spaces
|
* Quote --chdir option to mongrel_rails to support RAILS_ROOTs with spaces
|
||||||
(T.J. VanSlyke)
|
(T.J. VanSlyke)
|
||||||
|
|
|
@ -36,7 +36,7 @@ module Webrat
|
||||||
end
|
end
|
||||||
|
|
||||||
def query
|
def query
|
||||||
Nokogiri::CSS::Parser.parse(@expected.to_s).map do |ast|
|
Nokogiri::CSS.parse(@expected.to_s).map do |ast|
|
||||||
ast.to_xpath
|
ast.to_xpath
|
||||||
end.first
|
end.first
|
||||||
end
|
end
|
||||||
|
|
|
@ -43,7 +43,7 @@ module Webrat
|
||||||
selector << "[#{key}='#{value}']"
|
selector << "[#{key}='#{value}']"
|
||||||
end
|
end
|
||||||
|
|
||||||
Nokogiri::CSS::Parser.parse(selector).map { |ast| ast.to_xpath }
|
Nokogiri::CSS.parse(selector).map { |ast| ast.to_xpath }
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue