summaryrefslogtreecommitdiff
path: root/spec/unit/provider
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2020-05-06 16:54:20 -0700
committerTim Smith <tsmith84@gmail.com>2020-05-06 16:54:20 -0700
commitbed3ecfb36c61ec78b93155ad4ae3f3a01a2f57f (patch)
tree9cb0c8fd6f4bdf274a5d3d07be8d2c07b773e3f4 /spec/unit/provider
parentb39cf567a0e39c989c85bfc92b5352a655eeac05 (diff)
downloadchef-bed3ecfb36c61ec78b93155ad4ae3f3a01a2f57f.tar.gz
Align all our comments with the code
Autocorrected with chefstyle after enabling that cop. It was very hard to read some complex autocorrected blocks w/o this. Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'spec/unit/provider')
-rw-r--r--spec/unit/provider/git_spec.rb6
-rw-r--r--spec/unit/provider/osx_profile_spec.rb4
-rw-r--r--spec/unit/provider/package/msu_spec.rb6
-rw-r--r--spec/unit/provider/service/gentoo_service_spec.rb2
4 files changed, 9 insertions, 9 deletions
diff --git a/spec/unit/provider/git_spec.rb b/spec/unit/provider/git_spec.rb
index 2f253358f1..078e6109dc 100644
--- a/spec/unit/provider/git_spec.rb
+++ b/spec/unit/provider/git_spec.rb
@@ -678,7 +678,7 @@ describe Chef::Provider::Git do
expect(@provider).to receive(:enable_submodules)
expect(@provider).to receive(:add_remotes)
@provider.run_action(:checkout)
- # @resource.should be_updated
+ # @resource.should be_updated
end
it "should not checkout if the destination exists or is a non empty directory" do
@@ -716,7 +716,7 @@ describe Chef::Provider::Git do
expect(@provider).to receive(:enable_submodules)
expect(@provider).to receive(:add_remotes)
@provider.run_action(:sync)
- # @resource.should be_updated
+ # @resource.should be_updated
end
it "does not fetch any updates if the remote revision matches the current revision" do
@@ -736,7 +736,7 @@ describe Chef::Provider::Git do
expect(@provider).to receive(:action_checkout)
expect(@provider).not_to receive(:shell_out!)
@provider.run_action(:sync)
- # @resource.should be_updated
+ # @resource.should be_updated
end
it "clones the repo instead of fetching updates if the deploy directory is empty" do
diff --git a/spec/unit/provider/osx_profile_spec.rb b/spec/unit/provider/osx_profile_spec.rb
index 017041bc60..9554f235f3 100644
--- a/spec/unit/provider/osx_profile_spec.rb
+++ b/spec/unit/provider/osx_profile_spec.rb
@@ -61,8 +61,8 @@ describe Chef::Provider::OsxProfile do
"ProfileVersion" => 1 }],
}
end
- # If anything is changed within this profile, be sure to update the
- # ProfileUUID in all_profiles to match the new config specific UUID
+ # If anything is changed within this profile, be sure to update the
+ # ProfileUUID in all_profiles to match the new config specific UUID
let(:test_profile) do
{
"PayloadIdentifier" => "com.testprofile.screensaver",
diff --git a/spec/unit/provider/package/msu_spec.rb b/spec/unit/provider/package/msu_spec.rb
index f71bd9a775..897ae254f0 100644
--- a/spec/unit/provider/package/msu_spec.rb
+++ b/spec/unit/provider/package/msu_spec.rb
@@ -261,9 +261,9 @@ describe Chef::Provider::Package::Msu, :windows_only do
expect(cab_files).to eql(["msu_dir/IE10-Windows6.1-KB2859903-x86.CAB"])
end
-# We couldn't find any msu file with multiple cab files in it.
-# So we are not 100% sure about the structure of XML file in this case
-# The specs below cover 2 possible XML formats
+ # We couldn't find any msu file with multiple cab files in it.
+ # So we are not 100% sure about the structure of XML file in this case
+ # The specs below cover 2 possible XML formats
context "handles different xml formats for multiple cab files in the msu package" do
it "parses xml file with multiple <package> tags" do
xml_file = File.join(CHEF_SPEC_DATA, "sample_msu2.xml")
diff --git a/spec/unit/provider/service/gentoo_service_spec.rb b/spec/unit/provider/service/gentoo_service_spec.rb
index f9da2a828c..99c01b595b 100644
--- a/spec/unit/provider/service/gentoo_service_spec.rb
+++ b/spec/unit/provider/service/gentoo_service_spec.rb
@@ -37,7 +37,7 @@ describe Chef::Provider::Service::Gentoo do
allow(File).to receive(:exists?).with("/etc/runlevels/default/chef").and_return(false)
allow(File).to receive(:readable?).with("/etc/runlevels/default/chef").and_return(false)
end
- # new test: found_enabled state
+ # new test: found_enabled state
#
describe "load_current_resource" do
it "should raise Chef::Exceptions::Service if /sbin/rc-update does not exist" do