summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Mitsuk Lavitt <r.mitsuklavitt@gmail.com>2021-01-12 15:12:36 -0600
committerRichard Mitsuk Lavitt <r.mitsuklavitt@gmail.com>2021-01-12 15:12:36 -0600
commit5c6a06b1360ff3905b50dcfa3e20de2af3ea709a (patch)
treef5c0e87369147da6ec0ba1cbc4f05270ccd0095a
parent474bea9632c6863aa05bc3689f8d4d8d54e72c13 (diff)
downloadchef-5c6a06b1360ff3905b50dcfa3e20de2af3ea709a.tar.gz
Fix misspelling in spec/functional/resource/aixinit_service_spec.rb.
Obvious fix.
-rwxr-xr-xspec/functional/resource/aixinit_service_spec.rb14
1 files changed, 7 insertions, 7 deletions
diff --git a/spec/functional/resource/aixinit_service_spec.rb b/spec/functional/resource/aixinit_service_spec.rb
index c568d40a8d..1d54fbc816 100755
--- a/spec/functional/resource/aixinit_service_spec.rb
+++ b/spec/functional/resource/aixinit_service_spec.rb
@@ -34,7 +34,7 @@ describe Chef::Resource::Service, :requires_root, :aix_only do
expect(File.exist?("#{Dir.tmpdir}/#{file_name}")).to be_falsey
end
- def valide_symlinks(expected_output, run_level = nil, status = nil, priority = nil)
+ def valid_symlinks(expected_output, run_level = nil, status = nil, priority = nil)
directory = []
if priority.is_a? Hash
priority.each do |level, o|
@@ -129,7 +129,7 @@ describe Chef::Resource::Service, :requires_root, :aix_only do
context "when the service doesn't set a priority" do
it "creates symlink with status S" do
new_resource.run_action(:enable)
- valide_symlinks(["/etc/rc.d/rc2.d/Schefinittest"], 2, "S")
+ valid_symlinks(["/etc/rc.d/rc2.d/Schefinittest"], 2, "S")
end
end
@@ -140,7 +140,7 @@ describe Chef::Resource::Service, :requires_root, :aix_only do
it "creates a symlink with status S and a priority" do
new_resource.run_action(:enable)
- valide_symlinks(["/etc/rc.d/rc2.d/S75chefinittest"], 2, "S", 75)
+ valid_symlinks(["/etc/rc.d/rc2.d/S75chefinittest"], 2, "S", 75)
end
end
@@ -152,7 +152,7 @@ describe Chef::Resource::Service, :requires_root, :aix_only do
it "create symlink with status start (S) or stop (K) and a priority " do
new_resource.run_action(:enable)
- valide_symlinks(["/etc/rc.d/rc2.d/S20chefinittest", "/etc/rc.d/rc3.d/K10chefinittest"], 2, "S", new_resource.priority)
+ valid_symlinks(["/etc/rc.d/rc2.d/S20chefinittest", "/etc/rc.d/rc3.d/K10chefinittest"], 2, "S", new_resource.priority)
end
end
end
@@ -170,7 +170,7 @@ describe Chef::Resource::Service, :requires_root, :aix_only do
it "creates symlink with status K" do
new_resource.run_action(:disable)
- valide_symlinks(["/etc/rc.d/rc2.d/Kchefinittest"], 2, "K")
+ valid_symlinks(["/etc/rc.d/rc2.d/Kchefinittest"], 2, "K")
end
end
@@ -186,7 +186,7 @@ describe Chef::Resource::Service, :requires_root, :aix_only do
it "creates a symlink with status K and a priority" do
new_resource.run_action(:disable)
- valide_symlinks(["/etc/rc.d/rc2.d/K25chefinittest"], 2, "K", 25)
+ valid_symlinks(["/etc/rc.d/rc2.d/K25chefinittest"], 2, "K", 25)
end
end
@@ -203,7 +203,7 @@ describe Chef::Resource::Service, :requires_root, :aix_only do
it "create symlink with status stop (K) and a priority " do
new_resource.run_action(:disable)
- valide_symlinks(["/etc/rc.d/rc2.d/K80chefinittest"], 2, "K", 80)
+ valid_symlinks(["/etc/rc.d/rc2.d/K80chefinittest"], 2, "K", 80)
end
end
end