Sha256: 2bc8c0e36721285bb7c1a794ae99ffbe25413c407731b8476c469c6f543f7680
Contents?: true
Size: 743 Bytes
Versions: 3
Compression:
Stored size: 743 Bytes
Contents
# 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(/I am in a project using gurke/) do _write_file 'Gemfile', <<-EOS source 'https://rubygems.org' gem 'gurke', path: '#{File.dirname(Gurke.root)}' gem 'test-unit' EOS 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
gurke-2.4.2 | features/support/steps/file_steps.rb |
gurke-2.4.1 | features/support/steps/file_steps.rb |
gurke-2.4.0 | features/support/steps/file_steps.rb |