Sha256: 969fd3ffbf3a33c6d17bdf76e58e1faf94b4c6eca9617b22456ac24f873fedc4
Contents?: true
Size: 499 Bytes
Versions: 3
Compression:
Stored size: 499 Bytes
Contents
module Cucumberator class FeatureFile def initialize(scenario) @scenario = scenario end def lines File.readlines(file) end def file @feature_file ||= Pathname.new(@scenario.file_colon_line.split(":").first).realpath end def to_s File.basename(file) end def overwrite(contents) File.open(file, 'w') { |f| f.puts(contents) } end def append(contents) File.open(file, 'a') { |f| f.puts(contents) } end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
cucumberator-1.0.3 | lib/cucumberator/feature_file.rb |
cucumberator-1.0.2 | lib/cucumberator/feature_file.rb |
cucumberator-1.0.1 | lib/cucumberator/feature_file.rb |