mirror of
https://github.com/capistrano/capistrano
synced 2023-03-27 23:21:18 -04:00
Merge pull request #1619 from will-in-wi/rubocop_block_end_newline
Enable BlockEndNewline cop
This commit is contained in:
commit
f563e28559
4 changed files with 6 additions and 5 deletions
|
@ -33,8 +33,6 @@ Style/SingleLineBlockParams:
|
|||
Enabled: false
|
||||
Style/ModuleFunction:
|
||||
Enabled: false
|
||||
Style/BlockEndNewline:
|
||||
Enabled: false
|
||||
Style/TrailingCommaInLiteral:
|
||||
Enabled: false
|
||||
|
||||
|
|
|
@ -8,7 +8,8 @@ module Capistrano
|
|||
Server.new("server2").add_role(:web),
|
||||
Server.new("server3").add_role(:redis),
|
||||
Server.new("server4").add_role(:db),
|
||||
Server.new("server5").add_role(:stageweb)] }
|
||||
Server.new("server5").add_role(:stageweb)]
|
||||
}
|
||||
|
||||
describe '#new' do
|
||||
it "won't create an invalid type of filter" do
|
||||
|
|
|
@ -10,7 +10,8 @@ module Capistrano
|
|||
Server.new("server2"),
|
||||
Server.new("server3"),
|
||||
Server.new("server4"),
|
||||
Server.new("server5")] }
|
||||
Server.new("server5")]
|
||||
}
|
||||
|
||||
shared_examples "it filters hosts correctly" do |expected|
|
||||
it "filters correctly" do
|
||||
|
|
|
@ -10,7 +10,8 @@ module Capistrano
|
|||
Server.new("server2").add_role(:web),
|
||||
Server.new("server3").add_role(:redis),
|
||||
Server.new("server4").add_role(:db),
|
||||
Server.new("server5").add_role(:stageweb)] }
|
||||
Server.new("server5").add_role(:stageweb)]
|
||||
}
|
||||
|
||||
shared_examples "it filters roles correctly" do |expected_size, expected|
|
||||
it "filters correctly" do
|
||||
|
|
Loading…
Reference in a new issue