diff options
author | Douglas Eichelberger <dduugg@gmail.com> | 2022-09-11 15:15:36 -0700 |
---|---|---|
committer | Douglas Eichelberger <dduugg@gmail.com> | 2022-09-11 15:15:36 -0700 |
commit | 0e06fc6ab27a88f7c451fc7de9645f7cab050ad9 (patch) | |
tree | 4e59e32730d576be28aecbc7e6c5be0803e40476 /spec | |
parent | 43c2d3c79419dd79babb0f9c5f3920eb9cd4677f (diff) | |
download | pry-0e06fc6ab27a88f7c451fc7de9645f7cab050ad9.tar.gz |
Complete Style/SymbolArray todo
Diffstat (limited to 'spec')
-rw-r--r-- | spec/commands/show_source_spec.rb | 18 | ||||
-rw-r--r-- | spec/integration/cli_spec.rb | 2 |
2 files changed, 10 insertions, 10 deletions
diff --git a/spec/commands/show_source_spec.rb b/spec/commands/show_source_spec.rb index d436ef2a..e6b8acff 100644 --- a/spec/commands/show_source_spec.rb +++ b/spec/commands/show_source_spec.rb @@ -1151,7 +1151,7 @@ describe "show-source" do # rubocop:disable Metrics/BlockLength end after do - [:BetaClass, :AlphaClass].each { |name| Object.remove_const(name) } + %i[BetaClass AlphaClass].each { |name| Object.remove_const(name) } end it "shows docs for the nested classes" do @@ -1176,7 +1176,7 @@ describe "show-source" do # rubocop:disable Metrics/BlockLength end after do - [:BetaClass, :AlphaClass].each { |name| Object.remove_const(name) } + %i[BetaClass AlphaClass].each { |name| Object.remove_const(name) } end it "shows docs for the nested classes" do @@ -1386,7 +1386,7 @@ describe "show-source" do # rubocop:disable Metrics/BlockLength end after do - [:Child, :Parent].each { |name| Object.remove_const(name) } + %i[Child Parent].each { |name| Object.remove_const(name) } end it "shows the docs of the superclass" do @@ -1412,7 +1412,7 @@ describe "show-source" do # rubocop:disable Metrics/BlockLength end after do - [:Grandparent, :Child, :Parent].each { |name| Object.remove_const(name) } + %i[Grandparent Child Parent].each { |name| Object.remove_const(name) } end it "shows the docs of the superclass" do @@ -1437,7 +1437,7 @@ describe "show-source" do # rubocop:disable Metrics/BlockLength end after do - [:Child, :Parent].each { |name| Object.remove_const(name) } + %i[Child Parent].each { |name| Object.remove_const(name) } end it "raises Pry::CommandError" do @@ -1459,7 +1459,7 @@ describe "show-source" do # rubocop:disable Metrics/BlockLength end after do - [:Beta, :Alpha].each { |name| Object.remove_const(name) } + %i[Beta Alpha].each { |name| Object.remove_const(name) } end it "shows the included module's doc" do @@ -1486,7 +1486,7 @@ describe "show-source" do # rubocop:disable Metrics/BlockLength end after do - [:Beta, :Alpha].each { |name| Object.remove_const(name) } + %i[Beta Alpha].each { |name| Object.remove_const(name) } end it "raises Pry::CommandError" do @@ -1512,7 +1512,7 @@ describe "show-source" do # rubocop:disable Metrics/BlockLength end after do - [:Gamma, :Beta, :Alpha].each { |name| Object.remove_const(name) } + %i[Gamma Beta Alpha].each { |name| Object.remove_const(name) } end it "shows nth level included module doc" do @@ -1550,7 +1550,7 @@ describe "show-source" do # rubocop:disable Metrics/BlockLength end after do - [:Grandparent, :Parent, :Child].each { |name| Object.remove_const(name) } + %i[Grandparent Parent Child].each { |name| Object.remove_const(name) } end context "and when it's passed once" do diff --git a/spec/integration/cli_spec.rb b/spec/integration/cli_spec.rb index ec5298e7..b7657dae 100644 --- a/spec/integration/cli_spec.rb +++ b/spec/integration/cli_spec.rb @@ -13,7 +13,7 @@ RSpec.describe 'The bin/pry CLI' do pry_dir, 'bin/pry', *args, - err: [:child, :out]], &:read) + err: %i[child out]], &:read) status = $CHILD_STATUS # Pry will emit silent garbage because of our auto indent feature. |