summaryrefslogtreecommitdiff
path: root/spec/cli_spec.rb
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 /spec/cli_spec.rb
parent369bf7c96cfcf342c55f7a57170bd00c352154e3 (diff)
fix cli spec
Diffstat (limited to 'spec/cli_spec.rb')
-rw-r--r--spec/cli_spec.rb9
1 files changed, 4 insertions, 5 deletions
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 }