Sha256: 681d68cbce627da17fd1cbf80ecfce9badcf0ad98b4c9799a1804b1d2b48a126
Contents?: true
Size: 394 Bytes
Versions: 1
Compression:
Stored size: 394 Bytes
Contents
Given /^a target file$/ do @target_file = File.expand_path(File.join(Dir.tmpdir, 'hydra_test.txt')) end When /^I write "([^\"]*)" to the file$/ do |text| f = File.new(@target_file, 'w') f.write text f.flush f.close end Then /^"([^\"]*)" should be written in the file$/ do |text| f = File.new(@target_file, 'r') raise 'Did not write to file' unless text == f.read f.close end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hydra-0.15.0 | test/fixtures/features/step_definitions.rb |