diff --git a/.rubocop.yml b/.rubocop.yml index 58171f2c..7bc3a8ed 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -33,8 +33,6 @@ Style/SingleLineBlockParams: Enabled: false Style/ModuleFunction: Enabled: false -Style/BlockEndNewline: - Enabled: false Style/TrailingCommaInLiteral: Enabled: false diff --git a/spec/lib/capistrano/configuration/filter_spec.rb b/spec/lib/capistrano/configuration/filter_spec.rb index 5665298c..11e60adc 100644 --- a/spec/lib/capistrano/configuration/filter_spec.rb +++ b/spec/lib/capistrano/configuration/filter_spec.rb @@ -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 diff --git a/spec/lib/capistrano/configuration/host_filter_spec.rb b/spec/lib/capistrano/configuration/host_filter_spec.rb index d7d4d768..a8375441 100644 --- a/spec/lib/capistrano/configuration/host_filter_spec.rb +++ b/spec/lib/capistrano/configuration/host_filter_spec.rb @@ -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 diff --git a/spec/lib/capistrano/configuration/role_filter_spec.rb b/spec/lib/capistrano/configuration/role_filter_spec.rb index da27f01f..83a2abb5 100644 --- a/spec/lib/capistrano/configuration/role_filter_spec.rb +++ b/spec/lib/capistrano/configuration/role_filter_spec.rb @@ -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