class Cucumber::FileSpecs::FileSpec
Attributes
file[R]
Public Class Methods
new(spec)
click to toggle source
# File lib/cucumber/file_specs.rb, line 24 def initialize(spec) @file, @lines = *FILE_COLON_LINE_PATTERN.match(spec).captures Cucumber.logger.debug(" * #{@file}\n") @lines = String(@lines).split(':').map { |line| Integer(line) } end
Public Instance Methods
locations()
click to toggle source
# File lib/cucumber/file_specs.rb, line 32 def locations return [Core::Test::Location.new(@file)] if @lines.empty? @lines.map { |line| Core::Test::Location.new(@file, line) } end