Skip to content

Commit

Permalink
Fix MockSsh call
Browse files Browse the repository at this point in the history
  • Loading branch information
ytti committed Dec 22, 2024
1 parent 6ef91e3 commit 89a9269
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spec/model/model_helper_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
require_relative 'model_helper'
require_relative 'atoms'

# This class is used to test the developpent of model_helper.rb
# it uses the Garderos model, as model_helper.rb was deveopped with it
Expand All @@ -11,7 +12,7 @@
@node = Oxidized::Node.new(name: 'example.com',
input: 'ssh',
model: 'garderos')
@mockmodel = MockSsh.new('examples/device-simulation/yaml/garderos_R7709_003_006_068.yaml')
@mockmodel = MockSsh.new(ATOMS::TestOutput.new('garderos', 'R7709_003_006_068'))
Net::SSH.stubs(:start).returns @mockmodel
end

Expand Down

0 comments on commit 89a9269

Please sign in to comment.