Sha256: 0a82e041e90ca5bde6365a8c1af57f38f518cc1c56cb4df2a369e6be40317f36
Contents?: true
Size: 567 Bytes
Versions: 11
Compression:
Stored size: 567 Bytes
Contents
# frozen_string_literal: true module FileSteps def _write_file(path, content) file = @__root.join(path) FileUtils.mkdir_p(File.dirname(file)) File.write(file, content) end def _read_file(path) file = @__root.join(path) File.read(file) end step(/a file "(.*?)" with the following content exists/) do |path, step| _write_file(path, step.doc_string) end # Then(/a file "(.*?)" with the following content exists/) do |path, step| # expect(_read_file(path)).to eq step.doc_string # end end Gurke.config.include FileSteps
Version data entries
11 entries across 11 versions & 1 rubygems