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.29 features/step_definitions/given/i_have_the_file_with_content.rb
penchant-0.2.28 features/step_definitions/given/i_have_the_file_with_content.rb
penchant-0.2.27 features/step_definitions/given/i_have_the_file_with_content.rb
penchant-0.2.26 features/step_definitions/given/i_have_the_file_with_content.rb
penchant-0.2.24 features/step_definitions/given/i_have_the_file_with_content.rb
penchant-0.2.23 features/step_definitions/given/i_have_the_file_with_content.rb
penchant-0.2.22 features/step_definitions/given/i_have_the_file_with_content.rb
penchant-0.2.21 features/step_definitions/given/i_have_the_file_with_content.rb
penchant-0.2.20 features/step_definitions/given/i_have_the_file_with_content.rb
penchant-0.2.19 features/step_definitions/given/i_have_the_file_with_content.rb
penchant-0.2.18 features/step_definitions/given/i_have_the_file_with_content.rb
penchant-0.2.17 features/step_definitions/given/i_have_the_file_with_content.rb
penchant-0.2.16 features/step_definitions/given/i_have_the_file_with_content.rb
penchant-0.2.15 features/step_definitions/given/i_have_the_file_with_content.rb
penchant-0.2.14 features/step_definitions/given/i_have_the_file_with_content.rb
penchant-0.2.13 features/step_definitions/given/i_have_the_file_with_content.rb
penchant-0.2.12 features/step_definitions/given/i_have_the_file_with_content.rb
penchant-0.2.11 features/step_definitions/given/i_have_the_file_with_content.rb
penchant-0.2.10 features/step_definitions/given/i_have_the_file_with_content.rb
penchant-0.2.9 features/step_definitions/given/i_have_the_file_with_content.rb