summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElvin Efendi <elvin.efendiyev@gmail.com>2016-06-02 21:35:11 +0200
committerElvin Efendi <elvin.efendiyev@gmail.com>2016-06-02 22:14:09 +0200
commit684f9b60fc6ffcc028081304de9c70cae793095f (patch)
tree9262ee88769bc3758a1c1bc9bbd623827a05e352
parent71d9bdc6a529d187d58a855208341409aa872289 (diff)
fix tests
-rw-r--r--spec/input/ssh_spec.rb1
-rw-r--r--spec/node_spec.rb3
2 files changed, 3 insertions, 1 deletions
diff --git a/spec/input/ssh_spec.rb b/spec/input/ssh_spec.rb
index c4210f2..2550d5c 100644
--- a/spec/input/ssh_spec.rb
+++ b/spec/input/ssh_spec.rb
@@ -4,6 +4,7 @@ require 'oxidized/input/ssh'
describe Oxidized::SSH do
before(:each) do
Oxidized.asetus = Asetus.new
+ Oxidized.setup_logger
Oxidized::Node.any_instance.stubs(:resolve_input)
Oxidized::Node.any_instance.stubs(:resolve_output)
@node = Oxidized::Node.new(name: 'example.com',
diff --git a/spec/node_spec.rb b/spec/node_spec.rb
index 21c6e34..1c38558 100644
--- a/spec/node_spec.rb
+++ b/spec/node_spec.rb
@@ -2,7 +2,8 @@ require 'spec_helper'
describe Oxidized::Node do
before(:each) do
- Oxidized.stubs(:asetus).returns(Asetus.new)
+ Oxidized.asetus = Asetus.new
+ Oxidized.setup_logger
Oxidized::Node.any_instance.stubs(:resolve_output)
@node = Oxidized::Node.new(name: 'example.com',