From 390755043562f6c25e04c052d556e844be94d813 Mon Sep 17 00:00:00 2001 From: William Johnston Date: Tue, 1 Mar 2016 09:44:09 -0600 Subject: [PATCH] Enable TrailingCommaInLiteral cop --- .rubocop.yml | 2 -- spec/lib/capistrano/dsl/paths_spec.rb | 8 ++++---- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/.rubocop.yml b/.rubocop.yml index 7bc3a8ed..a6510193 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -33,8 +33,6 @@ Style/SingleLineBlockParams: Enabled: false Style/ModuleFunction: Enabled: false -Style/TrailingCommaInLiteral: - Enabled: false # Needs refactors Metrics/PerceivedComplexity: diff --git a/spec/lib/capistrano/dsl/paths_spec.rb b/spec/lib/capistrano/dsl/paths_spec.rb index 3f9c35f6..89614664 100644 --- a/spec/lib/capistrano/dsl/paths_spec.rb +++ b/spec/lib/capistrano/dsl/paths_spec.rb @@ -22,7 +22,7 @@ describe Capistrano::DSL::Paths do it "returns the full pathnames" do expect(subject).to eq [ Pathname.new("/var/shared/log"), - Pathname.new("/var/shared/public/system"), + Pathname.new("/var/shared/public/system") ] end end @@ -38,7 +38,7 @@ describe Capistrano::DSL::Paths do expect(subject).to eq [ Pathname.new("/var/shared/config/database.yml"), Pathname.new("/var/shared/log/my.log"), - Pathname.new("/var/shared/log/access.log"), + Pathname.new("/var/shared/log/access.log") ] end end @@ -53,7 +53,7 @@ describe Capistrano::DSL::Paths do it "returns the full paths names of the parent dirs" do expect(subject).to eq [ Pathname.new("/var/shared/config"), - Pathname.new("/var/shared/log"), + Pathname.new("/var/shared/log") ] end end @@ -68,7 +68,7 @@ describe Capistrano::DSL::Paths do it "returns the full paths names of the parent dirs" do expect(subject).to eq [ Pathname.new("/var/shared"), - Pathname.new("/var/shared/public"), + Pathname.new("/var/shared/public") ] end end