From 89a92690b7c118995c076edc881d352895683d1e Mon Sep 17 00:00:00 2001 From: Saku Ytti Date: Sun, 22 Dec 2024 16:00:59 +0200 Subject: [PATCH] Fix MockSsh call --- spec/model/model_helper_spec.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spec/model/model_helper_spec.rb b/spec/model/model_helper_spec.rb index 74eb4d6c8..8d5fcb4cd 100644 --- a/spec/model/model_helper_spec.rb +++ b/spec/model/model_helper_spec.rb @@ -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 @@ -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