1
0
Fork 0
mirror of https://github.com/teamcapybara/capybara.git synced 2022-11-09 12:08:07 -05:00

Fix miscellaneous new Rubocop issues

This commit is contained in:
Thomas Walpole 2019-10-15 18:06:45 -07:00
parent a7ebe1216f
commit cd199105ea
2 changed files with 3 additions and 3 deletions

View file

@ -15,7 +15,7 @@ module Capybara
end
def self.escape_char(char)
char.match?(%r{[ -/:-~]}) ? "\\#{char}" : format('\\%06x', char.ord)
char.match?(%r{[ -/:-~]}) ? "\\#{char}" : format('\\%06<hex>x', hex: char.ord)
end
def self.split(css)

View file

@ -44,9 +44,9 @@ RSpec.describe Capybara::Result do
end
it 'can be selected' do
expect(result.select do |element|
expect(result.count do |element|
element.text.include? 't'
end.length).to eq(2)
end).to eq(2)
end
it 'can be reduced' do