summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElvin Efendi <elvin.efendiyev@gmail.com>2016-06-02 22:34:19 +0200
committerElvin Efendi <elvin.efendiyev@gmail.com>2016-06-02 22:34:19 +0200
commit7000d42b8634396b518568939bb1f6ac9e49e4d3 (patch)
tree0ec7c2f2dd6bd3132d3f5cd9654938dc86363ec3
parent684f9b60fc6ffcc028081304de9c70cae793095f (diff)
fix specs
-rw-r--r--Gemfile.lock6
-rw-r--r--spec/cli_spec.rb4
-rw-r--r--spec/nodes_spec.rb4
3 files changed, 7 insertions, 7 deletions
diff --git a/Gemfile.lock b/Gemfile.lock
index edacb37..1188627 100644
--- a/Gemfile.lock
+++ b/Gemfile.lock
@@ -1,9 +1,9 @@
PATH
remote: .
specs:
- oxidized (0.12.2)
+ oxidized (0.14.3)
asetus (~> 0.1)
- net-ssh (~> 3.0, >= 3.0.2)
+ net-ssh (>= 3.0.0, < 3.1)
rugged (~> 0.21, >= 0.21.4)
slop (~> 3.5)
@@ -23,7 +23,7 @@ GEM
method_source (~> 0.8.1)
slop (~> 3.4)
rake (10.4.2)
- rugged (0.23.3)
+ rugged (0.24.0)
slop (3.6.0)
PLATFORMS
diff --git a/spec/cli_spec.rb b/spec/cli_spec.rb
index 0a6c91b..b248766 100644
--- a/spec/cli_spec.rb
+++ b/spec/cli_spec.rb
@@ -9,11 +9,9 @@ describe Oxidized::CLI do
%w[-v --version].each do |option|
describe option do
- before { ARGV.replace [option] }
+ before { ARGV.push(option) }
it 'prints the version and exits' do
- Oxidized::Config.expects(:load)
- Oxidized.expects(:setup_logger)
Kernel.expects(:exit)
proc {
diff --git a/spec/nodes_spec.rb b/spec/nodes_spec.rb
index 5f2ef95..4560bdb 100644
--- a/spec/nodes_spec.rb
+++ b/spec/nodes_spec.rb
@@ -3,7 +3,9 @@ require 'spec_helper'
describe Oxidized::Nodes do
before(:each) do
Resolv.any_instance.stubs(:getaddress)
- Oxidized.stubs(:asetus).returns(Asetus.new)
+ Oxidized.asetus = Asetus.new
+ Oxidized.setup_logger
+
opts = {
input: 'ssh',
output: 'git',