Sha256: 4e682c5710dcf4c3019a2db6918b3cb661e209c9d668fb8d72a320620eb47b28
Contents?: true
Size: 841 Bytes
Versions: 4
Compression:
Stored size: 841 Bytes
Contents
module Cucumber module FeatureElement def attach_steps(steps) steps.each {|step| step.feature_element = self} end def file_colon_line(line = @line) @feature.file_colon_line(line) if @feature end def text_length @keyword.jlength + @name.jlength end def matches_scenario_names?(scenario_names) scenario_names.detect{|name| name == @name} end def backtrace_line(name = "#{@keyword} #{@name}", line = @line) @feature.backtrace_line(name, line) if @feature end def source_indent(text_length) max_line_length - text_length end def max_line_length @steps.max_line_length(self) end # TODO: Remove when we use StepCollection everywhere def previous_step(step) i = @steps.index(step) || -1 @steps[i-1] end end end
Version data entries
4 entries across 4 versions & 3 rubygems