summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElvin Efendi <elvin.efendiyev@gmail.com>2016-06-02 23:51:08 +0200
committerElvin Efendi <elvin.efendiyev@gmail.com>2016-06-02 23:51:08 +0200
commit64bdbeb673a8ab7155478ee5e0d1d58c1631a9d3 (patch)
treedb194c27c1fa4c8542a048e4afd8dcb0793acb27
parent369bf7c96cfcf342c55f7a57170bd00c352154e3 (diff)
fix cli spec
-rw-r--r--lib/oxidized/input/.telnet.rb.swpbin16384 -> 0 bytes
-rw-r--r--spec/cli_spec.rb9
2 files changed, 4 insertions, 5 deletions
diff --git a/lib/oxidized/input/.telnet.rb.swp b/lib/oxidized/input/.telnet.rb.swp
deleted file mode 100644
index dc6503d..0000000
--- a/lib/oxidized/input/.telnet.rb.swp
+++ /dev/null
Binary files differ
diff --git a/spec/cli_spec.rb b/spec/cli_spec.rb
index f3e7cb4..eb9872e 100644
--- a/spec/cli_spec.rb
+++ b/spec/cli_spec.rb
@@ -2,10 +2,7 @@ require 'spec_helper'
require 'oxidized/cli'
describe Oxidized::CLI do
- before do
- @original = ARGV
- @asetus = Asetus.new
- end
+ before { @original = ARGV }
after { ARGV.replace @original }
%w[-v --version].each do |option|
@@ -13,7 +10,9 @@ describe Oxidized::CLI do
before { ARGV.replace([option]) }
it 'prints the version and exits' do
- Asetus.expects(:new).returns(@asetus)
+ Oxidized::Config.expects(:load)
+ Oxidized.expects(:setup_logger)
+ File.expects(:expand_path)
Kernel.expects(:exit)
assert_output("#{Oxidized::VERSION}\n") { Oxidized::CLI.new }