diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 31050d58..242fbd08 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -13,13 +13,6 @@ Gemspec/RequiredRubyVersion: Exclude: - 'pry.gemspec' -# Offense count: 4 -# Cop supports --auto-correct. -# Configuration parameters: AllowBorderComment, AllowMarginComment. -Layout/EmptyComment: - Exclude: - - 'spec/command_spec.rb' - # Offense count: 2 # Cop supports --auto-correct. Layout/EmptyLineAfterMagicComment: diff --git a/spec/command_spec.rb b/spec/command_spec.rb index 31ce5521..9a010ff5 100644 --- a/spec/command_spec.rb +++ b/spec/command_spec.rb @@ -7,7 +7,6 @@ describe "Pry::Command" do describe 'call_safely' do it 'should display a message if gems are missing' do cmd = @set.create_command "ford-prefect", "From a planet near Beetlegeuse", requires_gem: %w(ghijkl) do - # end expect(mock_command(cmd, %w(hello world)).output).to match(/install-command ford-prefect/) @@ -15,7 +14,6 @@ describe "Pry::Command" do it 'should abort early if arguments are required' do cmd = @set.create_command 'arthur-dent', "Doesn't understand Thursdays", argument_required: true do - # end expect { mock_command(cmd, %w()) }.to raise_error Pry::CommandError @@ -79,7 +77,6 @@ describe "Pry::Command" do describe 'help' do it 'should default to the description for blocky commands' do @set.command 'oolon-colluphid', "Raving Atheist" do - # end expect(mock_command(@set['help'], %w(oolon-colluphid), command_set: @set).output).to match(/Raving Atheist/) @@ -196,9 +193,7 @@ describe "Pry::Command" do it 'should raise a command error if process is not overridden' do cmd = @set.create_command 'jeltz', "Commander of a Vogon constructor fleet" do - def proccces - # - end + def proccces; end end expect { mock_command(cmd) }.to raise_error Pry::CommandError