Skip to content

Commit

Permalink
updated test to use echo
Browse files Browse the repository at this point in the history
Signed-off-by: nikhil2611 <[email protected]>
  • Loading branch information
nikhil2611 committed Oct 17, 2024
1 parent fcad7a1 commit 52bd616
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions spec/kitchen/verifier/shell_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
let(:state) { {} }

let(:config) do
{ test_base_path: "/basist", kitchen_root: "/rooty", command: "exit 0" }
{ test_base_path: "/basist", kitchen_root: "/rooty", command: "echo 'Command executed successfully'" }
end

let(:transport) do
Expand Down Expand Up @@ -69,8 +69,8 @@
_(verifier[:sleep]).must_equal 0
end

it "sets :command to 'true' by default" do
_(verifier[:command]).must_equal "exit 0"
it "sets :command to 'echo Command executed successfully' by default" do
_(verifier[:command]).must_equal "echo 'Command executed successfully'"
end

it "sets :live_stream to stdout by default" do
Expand Down Expand Up @@ -160,13 +160,13 @@
end

describe "#run_command" do
it "execute localy and returns nil" do
it "execute locally and returns nil" do
verifier.run_command
end

it "returns string when remote_exec" do
config[:remote_exec] = true
_(verifier.run_command).must_equal "exit 0"
_(verifier.run_command).must_equal "echo 'Command executed successfully'"
end
end
end

0 comments on commit 52bd616

Please sign in to comment.