Sha256: ce7de7b37a53bfab93959e3cac2087c41d61e1478e3cf2534eb041d29b6e3a13

Contents?: true

Size: 544 Bytes

Versions: 20

Compression:

Stored size: 544 Bytes

Contents

Given /^a target file$/ do
  @target_file = File.expand_path(File.join(Dir.consistent_tmpdir, 'hydra_test.txt'))
end

Given /^an alternate target file$/ do
  @target_file = File.expand_path(File.join(Dir.consistent_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
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

20 entries across 20 versions & 6 rubygems

Version Path
ngauthier-hydra-0.24.0 test/fixtures/features/step_definitions.rb
nulogy-hydra-0.26.0 test/fixtures/features/step_definitions.rb
arturop-hydra-0.25.0 test/fixtures/features/step_definitions.rb
arturop-hydra-0.24.0 test/fixtures/features/step_definitions.rb
hydra-0.24.0 test/fixtures/features/step_definitions.rb
nulogy-hydra-0.23.2.1 test/fixtures/features/step_definitions.rb
justinf-hydra-0.23.8 test/fixtures/features/step_definitions.rb
justinf-hydra-0.23.7 test/fixtures/features/step_definitions.rb
justinf-hydra-0.23.6 test/fixtures/features/step_definitions.rb
justinf-hydra-0.23.5 test/fixtures/features/step_definitions.rb
justinf-hydra-0.23.4 test/fixtures/features/step_definitions.rb
arturop-hydra-0.23.4 test/fixtures/features/step_definitions.rb
sskirby-hydra-0.23.3 test/fixtures/features/step_definitions.rb
hydra-0.23.3 test/fixtures/features/step_definitions.rb
hydra-0.23.2 test/fixtures/features/step_definitions.rb
hydra-0.23.1 test/fixtures/features/step_definitions.rb
hydra-0.23.0 test/fixtures/features/step_definitions.rb
hydra-0.22.2 test/fixtures/features/step_definitions.rb
hydra-0.22.1 test/fixtures/features/step_definitions.rb
hydra-0.22.0 test/fixtures/features/step_definitions.rb