From 80a55db5e52875621b53f209b6bdba347d032a52 Mon Sep 17 00:00:00 2001 From: Jason Karns Date: Fri, 14 Aug 2015 22:18:55 -0400 Subject: [PATCH] ensure flattened/compacted array --- lib/cucumber/rake/task.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cucumber/rake/task.rb b/lib/cucumber/rake/task.rb index 1690a7ffb9..6e76fb4761 100644 --- a/lib/cucumber/rake/task.rb +++ b/lib/cucumber/rake/task.rb @@ -153,7 +153,7 @@ def runner(task_args = nil) #:nodoc: end def cucumber_opts_with_profile #:nodoc: - @profile ? [cucumber_opts, Array(@profile).flat_map {|p| ["--profile", p] }] : cucumber_opts + Array(cucumber_opts).concat Array(@profile).flat_map {|p| ["--profile", p] } end def feature_files #:nodoc: