mirror of
https://github.com/teamcapybara/capybara.git
synced 2022-11-09 12:08:07 -05:00
rubocop update
This commit is contained in:
parent
4b320fccd0
commit
61da95084c
2 changed files with 9 additions and 4 deletions
|
@ -115,6 +115,15 @@ Style/IfUnlessModifier:
|
||||||
Exclude:
|
Exclude:
|
||||||
- 'spec/**/*'
|
- 'spec/**/*'
|
||||||
|
|
||||||
|
Style/HashEachMethods:
|
||||||
|
Enabled: true
|
||||||
|
|
||||||
|
Style/HashTransformKeys:
|
||||||
|
Enabled: true
|
||||||
|
|
||||||
|
Style/HashTransformValues:
|
||||||
|
Enabled: true
|
||||||
|
|
||||||
Layout/EmptyLineBetweenDefs:
|
Layout/EmptyLineBetweenDefs:
|
||||||
AllowAdjacentOneLineDefs: true
|
AllowAdjacentOneLineDefs: true
|
||||||
|
|
||||||
|
|
|
@ -49,7 +49,6 @@ RSpec.describe Capybara::Selector::RegexpDisassembler, :aggregate_failures do
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'handles optional characters for #alternated_substrings' do
|
it 'handles optional characters for #alternated_substrings' do
|
||||||
# rubocop:disable Style/BracesAroundHashParameters
|
|
||||||
verify_alternated_strings(
|
verify_alternated_strings(
|
||||||
{
|
{
|
||||||
/abc*def/ => [%w[ab def]],
|
/abc*def/ => [%w[ab def]],
|
||||||
|
@ -62,7 +61,6 @@ RSpec.describe Capybara::Selector::RegexpDisassembler, :aggregate_failures do
|
||||||
/d?/ => []
|
/d?/ => []
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
# rubocop:enable Style/BracesAroundHashParameters
|
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'handles character classes' do
|
it 'handles character classes' do
|
||||||
|
@ -140,7 +138,6 @@ RSpec.describe Capybara::Selector::RegexpDisassembler, :aggregate_failures do
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'handles alternation for #alternated_substrings' do
|
it 'handles alternation for #alternated_substrings' do
|
||||||
# rubocop:disable Style/BracesAroundHashParameters
|
|
||||||
verify_alternated_strings(
|
verify_alternated_strings(
|
||||||
{
|
{
|
||||||
/abc|def/ => [%w[abc], %w[def]],
|
/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]]
|
/ab\\?cd/ => [%w[abcd], %w[ab\cd]]
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
# rubocop:enable Style/BracesAroundHashParameters
|
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'handles grouping' do
|
it 'handles grouping' do
|
||||||
|
|
Loading…
Add table
Reference in a new issue