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

rubocop update

This commit is contained in:
Thomas Walpole 2020-02-19 19:13:08 -08:00
parent 4b320fccd0
commit 61da95084c
2 changed files with 9 additions and 4 deletions

View file

@ -115,6 +115,15 @@ Style/IfUnlessModifier:
Exclude:
- 'spec/**/*'
Style/HashEachMethods:
Enabled: true
Style/HashTransformKeys:
Enabled: true
Style/HashTransformValues:
Enabled: true
Layout/EmptyLineBetweenDefs:
AllowAdjacentOneLineDefs: true

View file

@ -49,7 +49,6 @@ RSpec.describe Capybara::Selector::RegexpDisassembler, :aggregate_failures do
end
it 'handles optional characters for #alternated_substrings' do
# rubocop:disable Style/BracesAroundHashParameters
verify_alternated_strings(
{
/abc*def/ => [%w[ab def]],
@ -62,7 +61,6 @@ RSpec.describe Capybara::Selector::RegexpDisassembler, :aggregate_failures do
/d?/ => []
}
)
# rubocop:enable Style/BracesAroundHashParameters
end
it 'handles character classes' do
@ -140,7 +138,6 @@ RSpec.describe Capybara::Selector::RegexpDisassembler, :aggregate_failures do
end
it 'handles alternation for #alternated_substrings' do
# rubocop:disable Style/BracesAroundHashParameters
verify_alternated_strings(
{
/abc|def/ => [%w[abc], %w[def]],
@ -173,7 +170,6 @@ RSpec.describe Capybara::Selector::RegexpDisassembler, :aggregate_failures do
/ab\\?cd/ => [%w[abcd], %w[ab\cd]]
}
)
# rubocop:enable Style/BracesAroundHashParameters
end
it 'handles grouping' do