Skip to content

Commit 1f96b97

Browse files
renovate[bot]diemolclaude
authored
Update dependency rubocop-rspec to v3.10.2 (#2712)
* Update dependency rubocop-rspec to v3.10.2 * fix: exclude finders_spec.rb from RSpec/Output cop rubocop-rspec 3.10.2 adds RSpec/Output, which flags the puts calls in finders_spec.rb. That file is documentation example code (skip: 'these are just examples, not actual tests') referenced by pinned line numbers across multiple gh-codeblock docs, so autocorrecting it would break those references. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> * fix: scope RSpec/Output disable to the puts lines in finders_spec.rb Excluding the whole file let future edits introduce unintended console output elsewhere in the file without RuboCop catching it. Wrap only the two examples with puts calls in rubocop:disable/enable, matching the pattern already used in safari_spec.rb, and update the affected gh-codeblock line ranges in the finders docs (en, ja, pt-br, zh-cn) since two lines were added. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Diego Molina <diemol@gmail.com> Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
1 parent e2c252d commit 1f96b97

6 files changed

Lines changed: 18 additions & 15 deletions

File tree

examples/ruby/Gemfile.lock

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ GEM
99
lint_roller (1.1.0)
1010
logger (1.7.0)
1111
parallel (1.28.0)
12-
parser (3.3.11.1)
12+
parser (3.3.12.0)
1313
ast (~> 2.4.1)
1414
racc
1515
prism (1.9.0)
@@ -45,9 +45,10 @@ GEM
4545
rubocop-ast (1.50.0)
4646
parser (>= 3.3.7.2)
4747
prism (~> 1.7)
48-
rubocop-rspec (3.7.0)
48+
rubocop-rspec (3.10.2)
4949
lint_roller (~> 1.1)
50-
rubocop (~> 1.72, >= 1.72.1)
50+
regexp_parser (>= 2.0)
51+
rubocop (~> 1.86, >= 1.86.2)
5152
ruby-progressbar (1.13.0)
5253
rubyzip (3.4.1)
5354
selenium-devtools (0.150.0)

examples/ruby/spec/elements/finders_spec.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
driver.find_elements(tag_name: 'li')
2424
end
2525

26+
# rubocop:disable RSpec/Output
2627
it 'gets an element from a collection' do
2728
elements = driver.find_elements(:tag_name, 'p')
2829
elements.each { |e| puts e.text }
@@ -33,6 +34,7 @@
3334
elements = element.find_elements(:tag_name, 'p')
3435
elements.each { |e| puts e.text }
3536
end
37+
# rubocop:enable RSpec/Output
3638

3739
it 'find active element' do
3840
driver.find_element(css: '[name="q"]').send_keys('webElement')

website_and_docs/content/documentation/webdriver/elements/finders.en.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ namespace FindElementsExample {
263263
}
264264
{{< /tab >}}
265265
{{< tab header="Ruby" text=true >}}
266-
{{< gh-codeblock path="/examples/ruby/spec/elements/finders_spec.rb#L27-L28" >}}
266+
{{< gh-codeblock path="/examples/ruby/spec/elements/finders_spec.rb#L28-L29" >}}
267267
{{< /tab >}}
268268
{{< tab header="JavaScript" >}}
269269
const {Builder, By} = require('selenium-webdriver');
@@ -393,7 +393,7 @@ namespace FindElementsFromElement {
393393
}
394394
{{< /tab >}}
395395
{{< tab header="Ruby" text=true >}}
396-
{{< gh-codeblock path="/examples/ruby/spec/elements/finders_spec.rb#L32-L34" >}}
396+
{{< gh-codeblock path="/examples/ruby/spec/elements/finders_spec.rb#L33-L35" >}}
397397
{{< /tab >}}
398398
{{< tab header="JavaScript" >}}
399399
const {Builder, By} = require('selenium-webdriver');
@@ -501,7 +501,7 @@ It is used to track (or) find DOM element which has the focus in the current bro
501501
}
502502
{{< /tab >}}
503503
{{< tab header="Ruby" text=true >}}
504-
{{< gh-codeblock path="/examples/ruby/spec/elements/finders_spec.rb#L38-L39" >}}
504+
{{< gh-codeblock path="/examples/ruby/spec/elements/finders_spec.rb#L40-L41" >}}
505505
{{< /tab >}}
506506
{{< tab header="JavaScript" >}}
507507
const {Builder, By} = require('selenium-webdriver');

website_and_docs/content/documentation/webdriver/elements/finders.ja.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ namespace FindElementsExample {
250250
}
251251
{{< /tab >}}
252252
{{< tab header="Ruby" text=true >}}
253-
{{< gh-codeblock path="/examples/ruby/spec/elements/finders_spec.rb#L27-L28" >}}
253+
{{< gh-codeblock path="/examples/ruby/spec/elements/finders_spec.rb#L28-L29" >}}
254254
{{< /tab >}}
255255
{{< tab header="JavaScript" >}}
256256
const {Builder, By} = require('selenium-webdriver');
@@ -379,7 +379,7 @@ namespace FindElementsFromElement {
379379
}
380380
{{< /tab >}}
381381
{{< tab header="Ruby" text=true >}}
382-
{{< gh-codeblock path="/examples/ruby/spec/elements/finders_spec.rb#L32-L34" >}}
382+
{{< gh-codeblock path="/examples/ruby/spec/elements/finders_spec.rb#L33-L35" >}}
383383
{{< /tab >}}
384384
{{< tab header="JavaScript" >}}
385385
const {Builder, By} = require('selenium-webdriver');
@@ -486,7 +486,7 @@ namespace FindElementsFromElement {
486486
}
487487
{{< /tab >}}
488488
{{< tab header="Ruby" text=true >}}
489-
{{< gh-codeblock path="/examples/ruby/spec/elements/finders_spec.rb#L38-L39" >}}
489+
{{< gh-codeblock path="/examples/ruby/spec/elements/finders_spec.rb#L40-L41" >}}
490490
{{< /tab >}}
491491
{{< tab header="JavaScript" >}}
492492
const {Builder, By} = require('selenium-webdriver');

website_and_docs/content/documentation/webdriver/elements/finders.pt-br.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ namespace FindElementsExample {
254254
}
255255
{{< /tab >}}
256256
{{< tab header="Ruby" text=true >}}
257-
{{< gh-codeblock path="/examples/ruby/spec/elements/finders_spec.rb#L27-L28" >}}
257+
{{< gh-codeblock path="/examples/ruby/spec/elements/finders_spec.rb#L28-L29" >}}
258258
{{< /tab >}}
259259
{{< tab header="JavaScript" >}}
260260
const {Builder, By} = require('selenium-webdriver');
@@ -378,7 +378,7 @@ namespace FindElementsFromElement {
378378
}
379379
{{< /tab >}}
380380
{{< tab header="Ruby" text=true >}}
381-
{{< gh-codeblock path="/examples/ruby/spec/elements/finders_spec.rb#L32-L34" >}}
381+
{{< gh-codeblock path="/examples/ruby/spec/elements/finders_spec.rb#L33-L35" >}}
382382
{{< /tab >}}
383383
{{< tab header="JavaScript" >}}
384384
const {Builder, By} = require('selenium-webdriver');
@@ -485,7 +485,7 @@ Ele é usado para rastrear (ou) encontrar um elemento DOM que tem o foco no cont
485485
}
486486
{{< /tab >}}
487487
{{< tab header="Ruby" text=true >}}
488-
{{< gh-codeblock path="/examples/ruby/spec/elements/finders_spec.rb#L38-L39" >}}
488+
{{< gh-codeblock path="/examples/ruby/spec/elements/finders_spec.rb#L40-L41" >}}
489489
{{< /tab >}}
490490
{{< tab header="JavaScript" >}}
491491
const {Builder, By} = require('selenium-webdriver');

website_and_docs/content/documentation/webdriver/elements/finders.zh-cn.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ namespace FindElementsExample {
260260
}
261261
{{< /tab >}}
262262
{{< tab header="Ruby" text=true >}}
263-
{{< gh-codeblock path="/examples/ruby/spec/elements/finders_spec.rb#L27-L28" >}}
263+
{{< gh-codeblock path="/examples/ruby/spec/elements/finders_spec.rb#L28-L29" >}}
264264
{{< /tab >}}
265265
{{< tab header="JavaScript" >}}
266266
const {Builder, By} = require('selenium-webdriver');
@@ -389,7 +389,7 @@ namespace FindElementsFromElement {
389389
}
390390
{{< /tab >}}
391391
{{< tab header="Ruby" text=true >}}
392-
{{< gh-codeblock path="/examples/ruby/spec/elements/finders_spec.rb#L32-L34" >}}
392+
{{< gh-codeblock path="/examples/ruby/spec/elements/finders_spec.rb#L33-L35" >}}
393393
{{< /tab >}}
394394
{{< tab header="JavaScript" >}}
395395
const {Builder, By} = require('selenium-webdriver');
@@ -496,7 +496,7 @@ namespace FindElementsFromElement {
496496
}
497497
{{< /tab >}}
498498
{{< tab header="Ruby" text=true >}}
499-
{{< gh-codeblock path="/examples/ruby/spec/elements/finders_spec.rb#L38-L39" >}}
499+
{{< gh-codeblock path="/examples/ruby/spec/elements/finders_spec.rb#L40-L41" >}}
500500
{{< /tab >}}
501501
{{< tab header="JavaScript" >}}
502502
const {Builder, By} = require('selenium-webdriver');

0 commit comments

Comments
 (0)