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:
parent
a7ebe1216f
commit
cd199105ea
2 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue