mirror of
https://github.com/pry/pry.git
synced 2022-11-09 12:35:05 -05:00
rubocop: fix offences of the Layout/EmptyComment cop
This commit is contained in:
parent
8b891b1bb1
commit
dbe74ea86a
2 changed files with 1 additions and 13 deletions
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue