Sha256: bb666a8e64d099ee7d9677dafd7ea21a880c77aaaac75d6a25c29735782d67f5
Contents?: true
Size: 567 Bytes
Versions: 25
Compression:
Stored size: 567 Bytes
Contents
# frozen_string_literal: true module Cucumber module Cli class RerunFile attr_reader :path def self.can_read?(path) path[0] == '@' && File.file?(real_path(path)) end def self.real_path(path) path[1..-1] # remove leading @ end def initialize(path) @path = self.class.real_path(path) end def features lines.map { |l| l.scan(/(?:^| |)(.*?\.feature(?:(?::\d+)*))/) }.flatten end private def lines IO.read(@path).split("\n") end end end end
Version data entries
25 entries across 25 versions & 3 rubygems