diff options
author | Kyrylo Silin <silin@kyrylo.org> | 2019-03-24 18:06:30 +0200 |
---|---|---|
committer | Kyrylo Silin <silin@kyrylo.org> | 2019-03-24 18:06:30 +0200 |
commit | 3e35421e6bc2c805e8ad8d384102adedb6d4f39f (patch) | |
tree | 9ef9771f8a9e17f4c85413c65e65d08ccaa2a97c /spec | |
parent | a604b622c152d890b8431113f28d34d0a3220cea (diff) | |
download | pry-3e35421e6bc2c805e8ad8d384102adedb6d4f39f.tar.gz |
rubocop: fix the Naming/UncommunicativeMethodParamName cop
Diffstat (limited to 'spec')
-rw-r--r-- | spec/command_spec.rb | 4 | ||||
-rw-r--r-- | spec/commands/cat_spec.rb | 4 | ||||
-rw-r--r-- | spec/commands/cd_spec.rb | 2 | ||||
-rw-r--r-- | spec/commands/wtf_spec.rb | 4 | ||||
-rw-r--r-- | spec/completion_spec.rb | 2 |
5 files changed, 8 insertions, 8 deletions
diff --git a/spec/command_spec.rb b/spec/command_spec.rb index ab10c56f..85c5bdca 100644 --- a/spec/command_spec.rb +++ b/spec/command_spec.rb @@ -543,7 +543,7 @@ describe "Pry::Command" do @set.create_command( "walking-spanish", "punk sanders carved one out of wood", takes_block: true ) do - def process(x, y) + def process(x, y) # rubocop:disable Naming/UncommunicativeMethodParamName insert_variable(:@x, x, target) insert_variable(:@y, y, target) end @@ -559,7 +559,7 @@ describe "Pry::Command" do "doesn't remove block-related content from arguments if :takes_block => false" ) do @set.create_command "walking-spanish", "down the hall", takes_block: false do - def process(x, y) + def process(x, y) # rubocop:disable Naming/UncommunicativeMethodParamName insert_variable(:@x, x, target) insert_variable(:@y, y, target) end diff --git a/spec/commands/cat_spec.rb b/spec/commands/cat_spec.rb index 25a151d1..a2c3ecba 100644 --- a/spec/commands/cat_spec.rb +++ b/spec/commands/cat_spec.rb @@ -9,8 +9,8 @@ describe "cat" do @pry.update_input_history(nil) end - def last_exception=(e) - @pry.last_exception = e + def last_exception=(exception) + @pry.last_exception = exception end end end diff --git a/spec/commands/cd_spec.rb b/spec/commands/cd_spec.rb index 21d33077..d2120a6e 100644 --- a/spec/commands/cd_spec.rb +++ b/spec/commands/cd_spec.rb @@ -224,7 +224,7 @@ describe 'cd' do end it 'should cd into complex input (with spaces)' do - def @o.hello(_x, _y, _z) + def @o.hello(_x, _y, _z) # rubocop:disable Naming/UncommunicativeMethodParamName :mon_ouie end diff --git a/spec/commands/wtf_spec.rb b/spec/commands/wtf_spec.rb index 118046e7..0a224fa5 100644 --- a/spec/commands/wtf_spec.rb +++ b/spec/commands/wtf_spec.rb @@ -1,8 +1,8 @@ describe "wtf?!" do let(:tester) do pry_tester do - def last_exception=(ex) - @pry.last_exception = ex + def last_exception=(exception) + @pry.last_exception = exception end def last_exception diff --git a/spec/completion_spec.rb b/spec/completion_spec.rb index f382b762..dc2ea38d 100644 --- a/spec/completion_spec.rb +++ b/spec/completion_spec.rb @@ -240,7 +240,7 @@ describe Pry::InputCompleter do # skip unless Pry::Helpers::Platform.jruby? m = Module.new do - def self.hash(a, b); end + def self.hash; end def aaaa; end end |