summaryrefslogtreecommitdiff
path: root/spec/node_spec.rb
diff options
context:
space:
mode:
authorytti <saku@ytti.fi>2016-07-22 13:18:14 +0200
committerGitHub <noreply@github.com>2016-07-22 13:18:14 +0200
commitdd6f5df411a3ba0e9158d6c1fc5293aa53c47a29 (patch)
treea3ea3f5c90449c239ee033f71232b1f1f85fe0ae /spec/node_spec.rb
parent63b1bd788e0807f935e0a69c0e3589f9c041206c (diff)
parentde2a9d18a5847439b40adfc0cc4c75e6cbf6262d (diff)
Merge pull request #503 from danilopopeye/ds-fixes-and-refactors
fix repository path resolution
Diffstat (limited to 'spec/node_spec.rb')
-rw-r--r--spec/node_spec.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/node_spec.rb b/spec/node_spec.rb
index 1c38558..5cb5216 100644
--- a/spec/node_spec.rb
+++ b/spec/node_spec.rb
@@ -5,6 +5,7 @@ describe Oxidized::Node do
Oxidized.asetus = Asetus.new
Oxidized.setup_logger
+ Oxidized::Node.any_instance.stubs(:resolve_repo)
Oxidized::Node.any_instance.stubs(:resolve_output)
@node = Oxidized::Node.new(name: 'example.com',
input: 'ssh',
@@ -44,6 +45,10 @@ describe Oxidized::Node do
end
describe '#repo' do
+ before do
+ Oxidized::Node.any_instance.unstub(:resolve_repo)
+ end
+
let(:group) { nil }
let(:node) do
Oxidized::Node.new({