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
|
||||
|
||||
* 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)
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user