Skip to content

Commit

Permalink
ensure flattened/compacted array
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonkarns committed Aug 15, 2015
1 parent 73508d8 commit 38f1a74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cucumber/rake/task.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 38f1a74

Please sign in to comment.