From 64bdbeb673a8ab7155478ee5e0d1d58c1631a9d3 Mon Sep 17 00:00:00 2001 From: Elvin Efendi Date: Thu, 2 Jun 2016 23:51:08 +0200 Subject: fix cli spec --- lib/oxidized/input/.telnet.rb.swp | Bin 16384 -> 0 bytes spec/cli_spec.rb | 9 ++++----- 2 files changed, 4 insertions(+), 5 deletions(-) delete mode 100644 lib/oxidized/input/.telnet.rb.swp diff --git a/lib/oxidized/input/.telnet.rb.swp b/lib/oxidized/input/.telnet.rb.swp deleted file mode 100644 index dc6503d..0000000 Binary files a/lib/oxidized/input/.telnet.rb.swp and /dev/null 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 } -- cgit v1.2.1