Sha256: d9a6aa2470d90003bc08bc793a60d12b4869484bf96243a0200dd41eb79c84d8

Contents?: true

Size: 165 Bytes

Versions: 31

Compression:

Stored size: 165 Bytes

Contents

Given /^I have the file "([^"]*)" with the content:$/ do |file, string|
  FileUtils.mkdir_p File.dirname(file)

  File.open(file, 'wb') { |fh| fh.print string }
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
penchant-0.2.8.1 features/step_definitions/given/i_have_the_file_with_content.rb
penchant-0.2.8 features/step_definitions/given/i_have_the_file_with_content.rb
penchant-0.2.6 features/step_definitions/given/i_have_the_file_with_content.rb
penchant-0.2.5 features/step_definitions/given/i_have_the_file_with_content.rb
penchant-0.2.4 features/step_definitions/given/i_have_the_file_with_content.rb
penchant-0.2.3 features/step_definitions/given/i_have_the_file_with_content.rb
penchant-0.2.2 features/step_definitions/given/i_have_the_file_with_content.rb
penchant-0.2.1 features/step_definitions/given/i_have_the_file_with_content.rb
penchant-0.1.2 features/step_definitions/given/i_have_the_file_with_content.rb
penchant-0.1.1 features/step_definitions/given/i_have_the_file_with_content.rb
penchant-0.1.0 features/step_definitions/given/i_have_the_file_with_content.rb