test/fixtures/features/step_definitions.rb in hydra-0.15.0 vs test/fixtures/features/step_definitions.rb in hydra-0.15.1
- old
+ new
@@ -1,8 +1,12 @@
Given /^a target file$/ do
@target_file = File.expand_path(File.join(Dir.tmpdir, 'hydra_test.txt'))
end
+Given /^an alternate target file$/ do
+ @target_file = File.expand_path(File.join(Dir.tmpdir, 'alternate_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