lib/henry/task/cucumber_task.rb in henry-container-0.1.60 vs lib/henry/task/cucumber_task.rb in henry-container-0.1.61
- old
+ new
@@ -94,10 +94,15 @@
# Returns the miscellaneous cucumber_opts.
#
# @return [String]
def misc_options
- "#{self.data.options['expand'] ? '--expand' : ''} #{self.data.options['pattern'] ? "--require features #{self.data.options['pattern']}" : ''}"
+ options = []
+ options << '--expand' if self.data.options['expand'] == 'true'
+ options << "--require features #{self.data.options['pattern']}" if self.data.options['pattern']
+ options << '--no-source' if self.data.options['no-source'] == 'true'
+
+ return options.join(' ')
end
# Returns the default cucumber_opts.
#
# @return [String]