Skip to content

Commit

Permalink
use Array#+ for Ruby1.8
Browse files Browse the repository at this point in the history
[1, *[2, 3], *[4, 5]] is syntax error in Ruby1.8
  • Loading branch information
takkanm committed Feb 21, 2017
1 parent c3ead85 commit 292a07f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/support/formatter_support.rb
Expand Up @@ -25,7 +25,7 @@ def run_rspec_with_formatter(formatter, options={})
spec_order = options[:seed] ? ["--seed", options[:seed].to_s] : ["--order", "defined"]

options = RSpec::Core::ConfigurationOptions.new([
"--format", formatter, *spec_order, *extra_options
"--format", formatter, *(spec_order + extra_options)
])

err, out = StringIO.new, StringIO.new
Expand Down

0 comments on commit 292a07f

Please sign in to comment.