Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Fisher committed Jul 22, 2024
1 parent 188a94a commit 84a3823
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 4 deletions.
10 changes: 10 additions & 0 deletions spec/oozone/commands/ls_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/usr/bin/env ruby
# frozen_string_literal: true

require_relative '../../spec_helper'
require_relative '../../../lib/oozone/commands/ls'

# Test the ls command .

class CommandLsTest < Minitest::Test
end
6 changes: 4 additions & 2 deletions spec/oozone/customizer_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,10 @@ def test_run_ssh

@t.run_ssh
assert_equal(1, popen.calls.count)
assert_equal(["/usr/bin/ssh tester@1.2.3.4 '/bin/true'"],
popen.calls.first.args)
assert_equal(
["/bin/ssh -o StrictHostKeyChecking=no tester@1.2.3.4 '/bin/true'"],
popen.calls.first.args
)
end

private
Expand Down
6 changes: 4 additions & 2 deletions spec/oozone/runner_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,10 @@ def test_ssh_execute!
ssh_execute!(input)

assert_equal(1, popen.calls.count)
assert_equal(["/usr/bin/ssh tester@testhost 'testcmd'"],
popen.calls.first.args)
assert_equal(
["/bin/ssh -o StrictHostKeyChecking=no tester@testhost 'testcmd'"],
popen.calls.first.args
)
popen.unhook
end

Expand Down

0 comments on commit 84a3823

Please sign in to comment.