Skip to content

Commit

Permalink
Merge pull request #256 from alexjfisher/issue_255
Browse files Browse the repository at this point in the history
Fix compatibility with newer versions of `cri`
  • Loading branch information
Dylan authored Mar 10, 2020
2 parents 55a45d4 + 2dfe496 commit f223f41
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/onceover/testconfig.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,10 @@ def initialize(file, opts = {})
@strict_variables = opts[:strict_variables] ? 'yes' : 'no'

# Set dynamic defaults for format
if opts[:format] == [:defaults]
if Array(opts[:format]) == [:defaults]
@formatters = opts[:parallel] ? ['OnceoverFormatterParallel'] : ['OnceoverFormatter']
else
@formatters = opts[:format]
@formatters = Array(opts[:format])
end

# Initialise all of the classes and nodes
Expand Down

0 comments on commit f223f41

Please sign in to comment.