Skip to content

Commit

Permalink
Merge pull request ytti#1275 from wk/have-asetus-for-cli-tests
Browse files Browse the repository at this point in the history
ensure asetus is initialized in cli_spec.rb
  • Loading branch information
ytti authored Apr 12, 2018
2 parents 79dcc36 + cfbc50a commit 56ec279
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions spec/cli_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,14 @@
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
Expand Down

0 comments on commit 56ec279

Please sign in to comment.