Prefer %w syntax
authorPeter Donald <peter@realityforge.org>
Sat, 6 Jun 2015 00:28:15 +0000 (10:28 +1000)
committerPeter Donald <peter@realityforge.org>
Sat, 6 Jun 2015 00:28:15 +0000 (10:28 +1000)
lib/buildr/java/bdd.rb

index 8b98f31..3a70b13 100644 (file)
@@ -194,7 +194,7 @@ module Buildr #:nodoc:
       runner.requires ||= []
       runner.requires.unshift File.join(File.dirname(__FILE__), 'test_result')
       runner.gems ||= {}
-      runner.rspec ||= ['--format', 'progress', '--format', 'documentation']
+      runner.rspec ||= %w(--format progress --format documentation)
       runner.format.each { |format| runner.rspec << '--format' << format } if runner.format
       runner.rspec.push '--format', "Buildr::TestFramework::TestResult::YamlFormatter"
       runner.rspec.push '-o', runner.result