summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorWild Kat <wk@futureinquestion.net>2018-04-11 21:41:04 +0200
committerWild Kat <wk@futureinquestion.net>2018-04-11 21:41:04 +0200
commitcfbc50afe8a7c1e182fb6b0b4a8dbafdd33c5ce2 (patch)
tree2fc786ff23cb3e68875d6c259e957cddf9a20d5e /spec
parent91deea2ef8a7ae5f9ed6b523b720f9cf2c3f33b9 (diff)
ensure asetus is initialized regardless of test execution order
Diffstat (limited to 'spec')
-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