summaryrefslogtreecommitdiff
path: root/spec/cli_spec.rb
diff options
context:
space:
mode:
authorytti <saku@ytti.fi>2018-04-12 14:58:15 +0300
committerGitHub <noreply@github.com>2018-04-12 14:58:15 +0300
commit56ec279b2e9e2735ed88405fd177e77f9e376801 (patch)
tree0f50b542bf9aa2ee1db82c6e707ede0138060f6a /spec/cli_spec.rb
parent79dcc36c71920b74f5fa5fc4fc504f99df0b6ec2 (diff)
parentcfbc50afe8a7c1e182fb6b0b4a8dbafdd33c5ce2 (diff)
Merge pull request #1275 from wk/have-asetus-for-cli-tests
ensure asetus is initialized in cli_spec.rb
Diffstat (limited to 'spec/cli_spec.rb')
-rw-r--r--spec/cli_spec.rb10
1 files changed, 8 insertions, 2 deletions
diff --git a/spec/cli_spec.rb b/spec/cli_spec.rb
index eb9872e..bf6058a 100644
--- a/spec/cli_spec.rb
+++ b/spec/cli_spec.rb
@@ -2,8 +2,14 @@ require 'spec_helper'
require 'oxidized/cli'
describe Oxidized::CLI do
- before { @original = ARGV }
- after { ARGV.replace @original }
+ before(:each) do
+ @original = ARGV
+ Oxidized.asetus = Asetus.new
+ end
+
+ after(:each) do
+ ARGV.replace @original
+ end
%w[-v --version].each do |option|
describe option do