summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
Diffstat (limited to 'spec')
-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 }