summaryrefslogtreecommitdiff
path: root/spec/functional
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2016-01-13 11:44:32 -0800
committerLamont Granquist <lamont@scriptkiddie.org>2016-01-13 11:44:32 -0800
commitaf4afcc712d24dbc85a9c020a124acadeed295d2 (patch)
tree08a71e81175177fee945d09bb831d5ae37a24606 /spec/functional
parent1edd3dba71b4531bb1a570dd7e387620e8ee61de (diff)
downloadchef-af4afcc712d24dbc85a9c020a124acadeed295d2.tar.gz
autocorrecting Style/TrailingCommalcg/trailing_comma
chefstyle -a fixed 1044 occurrances
Diffstat (limited to 'spec/functional')
-rw-r--r--spec/functional/file_content_management/deploy_strategies_spec.rb8
-rw-r--r--spec/functional/notifications_spec.rb4
-rw-r--r--spec/functional/rebooter_spec.rb4
-rw-r--r--spec/functional/resource/execute_spec.rb2
-rw-r--r--spec/functional/resource/link_spec.rb2
-rw-r--r--spec/functional/resource/package_spec.rb2
-rw-r--r--spec/functional/resource/reboot_spec.rb2
-rw-r--r--spec/functional/resource/remote_directory_spec.rb2
-rw-r--r--spec/functional/resource/user/useradd_spec.rb2
-rw-r--r--spec/functional/resource/windows_service_spec.rb2
10 files changed, 15 insertions, 15 deletions
diff --git a/spec/functional/file_content_management/deploy_strategies_spec.rb b/spec/functional/file_content_management/deploy_strategies_spec.rb
index 48aaa29fbf..793da28ef9 100644
--- a/spec/functional/file_content_management/deploy_strategies_spec.rb
+++ b/spec/functional/file_content_management/deploy_strategies_spec.rb
@@ -180,7 +180,7 @@ describe Chef::FileContentManagement::Deploy::Cp do
:uid,
:gid,
:mode,
- :ino
+ :ino,
]
end
@@ -188,7 +188,7 @@ describe Chef::FileContentManagement::Deploy::Cp do
[
:owner,
:group,
- :dacl
+ :dacl,
]
end
@@ -202,7 +202,7 @@ describe Chef::FileContentManagement::Deploy::MvUnix, :unix_only do
[
:uid,
:gid,
- :mode
+ :mode,
]
end
@@ -220,7 +220,7 @@ describe Chef::FileContentManagement::Deploy::MvWindows, :windows_only do
[
:owner,
:group,
- :dacl
+ :dacl,
]
end
diff --git a/spec/functional/notifications_spec.rb b/spec/functional/notifications_spec.rb
index f14f35ebba..d448ea175d 100644
--- a/spec/functional/notifications_spec.rb
+++ b/spec/functional/notifications_spec.rb
@@ -106,7 +106,7 @@ describe "Notifications" do
{ resource: package_resource.to_s, action: :install, notification_type: :before, notifying_resource: log_resource.to_s },
# Then it runs the actual action
{ resource: log_resource.to_s, action: :write },
- { resource: package_resource.to_s, action: :nothing }
+ { resource: package_resource.to_s, action: :nothing },
]
end
@@ -140,7 +140,7 @@ describe "Notifications" do
# Then it does NOT run the before action
# Then it runs the actual action
{ resource: log_resource.to_s, action: :write },
- { resource: package_resource.to_s, action: :nothing }
+ { resource: package_resource.to_s, action: :nothing },
]
end
diff --git a/spec/functional/rebooter_spec.rb b/spec/functional/rebooter_spec.rb
index a0e2665de5..79f3a49010 100644
--- a/spec/functional/rebooter_spec.rb
+++ b/spec/functional/rebooter_spec.rb
@@ -24,7 +24,7 @@ describe Chef::Platform::Rebooter do
{
:delay_mins => 5,
:requested_by => "reboot resource functional test",
- :reason => "rebooter spec test"
+ :reason => "rebooter spec test",
}
end
@@ -44,7 +44,7 @@ describe Chef::Platform::Rebooter do
let(:expected) do
{
:windows => 'shutdown /r /t 300 /c "rebooter spec test"',
- :linux => 'shutdown -r +5 "rebooter spec test"'
+ :linux => 'shutdown -r +5 "rebooter spec test"',
}
end
diff --git a/spec/functional/resource/execute_spec.rb b/spec/functional/resource/execute_spec.rb
index 692ccfb796..9369a8050d 100644
--- a/spec/functional/resource/execute_spec.rb
+++ b/spec/functional/resource/execute_spec.rb
@@ -89,7 +89,7 @@ describe Chef::Resource::Execute do
resource.environment({
"SAWS_SECRET" => "supersecret",
"SAWS_KEY" => "qwerty",
- })
+ },)
end
it "guard inherits :environment value from resource and runs" do
diff --git a/spec/functional/resource/link_spec.rb b/spec/functional/resource/link_spec.rb
index 7e903b30b4..6b214f0b16 100644
--- a/spec/functional/resource/link_spec.rb
+++ b/spec/functional/resource/link_spec.rb
@@ -422,7 +422,7 @@ describe Chef::Resource::Link do
{
'../' => 'with a relative link destination',
- '' => 'with a bare filename for the link destination'
+ '' => 'with a bare filename for the link destination',
}.each do |prefix, desc|
context desc do
let(:to) { "#{prefix}#{File.basename(absolute_to)}" }
diff --git a/spec/functional/resource/package_spec.rb b/spec/functional/resource/package_spec.rb
index 25ec872b9b..00120afc29 100644
--- a/spec/functional/resource/package_spec.rb
+++ b/spec/functional/resource/package_spec.rb
@@ -54,7 +54,7 @@ module AptServer
:DocumentRoot => apt_data_dir + "/var/www/apt",
# Make WEBrick quiet, comment out for debug.
:Logger => Logger.new(StringIO.new),
- :AccessLog => [ StringIO.new, WEBrick::AccessLog::COMMON_LOG_FORMAT ]
+ :AccessLog => [ StringIO.new, WEBrick::AccessLog::COMMON_LOG_FORMAT ],
)
end
diff --git a/spec/functional/resource/reboot_spec.rb b/spec/functional/resource/reboot_spec.rb
index 99de136827..da3775ef20 100644
--- a/spec/functional/resource/reboot_spec.rb
+++ b/spec/functional/resource/reboot_spec.rb
@@ -24,7 +24,7 @@ describe Chef::Resource::Reboot do
{
:delay_mins => 5,
:requested_by => "reboot resource functional test",
- :reason => "reboot resource spec test"
+ :reason => "reboot resource spec test",
}
end
diff --git a/spec/functional/resource/remote_directory_spec.rb b/spec/functional/resource/remote_directory_spec.rb
index 37ffbbc971..669ee60831 100644
--- a/spec/functional/resource/remote_directory_spec.rb
+++ b/spec/functional/resource/remote_directory_spec.rb
@@ -64,7 +64,7 @@ describe Chef::Resource::RemoteDirectory do
File.join(path, 'remotesubdir', 'remote_subdir_file1.txt'),
File.join(path, 'remotesubdir', 'remote_subdir_file2.txt'),
File.join(path, 'remotesubdir', '.a_dotfile'),
- File.join(path, '.a_dotdir', '.a_dotfile_in_a_dotdir')
+ File.join(path, '.a_dotdir', '.a_dotfile_in_a_dotdir'),
]
end
diff --git a/spec/functional/resource/user/useradd_spec.rb b/spec/functional/resource/user/useradd_spec.rb
index 474f6a4ecf..2750d33fd1 100644
--- a/spec/functional/resource/user/useradd_spec.rb
+++ b/spec/functional/resource/user/useradd_spec.rb
@@ -33,7 +33,7 @@ end
metadata = { :unix_only => true,
:requires_root => true,
:not_supported_on_mac_osx => true,
- :provider => {:user => user_provider_for_platform}
+ :provider => {:user => user_provider_for_platform},
}
describe Chef::Provider::User::Useradd, metadata do
diff --git a/spec/functional/resource/windows_service_spec.rb b/spec/functional/resource/windows_service_spec.rb
index 9ee4adde87..bbefb49623 100644
--- a/spec/functional/resource/windows_service_spec.rb
+++ b/spec/functional/resource/windows_service_spec.rb
@@ -49,7 +49,7 @@ describe Chef::Resource::WindowsService, :windows_only, :system_windows_service_
service_display_name: "windows_service spec #{id}}",
service_description: "Test service for running the windows_service functional spec.",
service_file_path: global_service_file_path,
- } )
+ }, )
}
let(:manager) {