diff options
author | Danilo Sousa <dsgoncalves@uoldiveo.com> | 2016-07-20 07:00:31 -0300 |
---|---|---|
committer | Danilo Sousa <dsgoncalves@uoldiveo.com> | 2016-07-20 10:32:59 -0300 |
commit | de2a9d18a5847439b40adfc0cc4c75e6cbf6262d (patch) | |
tree | 5cda65dc6210c89a4d85518c1c55e42034f8807d /spec/node_spec.rb | |
parent | 3310af0e9017eb7ea16ae19a98929ec5541890bf (diff) |
fixed the #fetch and #verions web problems
apart from the refactorings, now the node path its correct even
when groups are used
Diffstat (limited to 'spec/node_spec.rb')
-rw-r--r-- | spec/node_spec.rb | 5 |
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({ |