Sha256: 26f76a7633abba5743482379e0f0962282f435fa5cbba94c99c466f1741968c5

Contents?: true

Size: 522 Bytes

Versions: 27

Compression:

Stored size: 522 Bytes

Contents

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
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

27 entries across 27 versions & 4 rubygems

Version Path
causes-hydra-0.21.0 test/fixtures/features/step_definitions.rb
sskirby-hydra-0.21.0 test/fixtures/features/step_definitions.rb
hydra-0.21.0 test/fixtures/features/step_definitions.rb
hydra-0.20.0 test/fixtures/features/step_definitions.rb
bellmyer-hydra-0.20.12 test/fixtures/features/step_definitions.rb
bellmyer-hydra-0.20.11 test/fixtures/features/step_definitions.rb
bellmyer-hydra-0.20.10 test/fixtures/features/step_definitions.rb
bellmyer-hydra-0.20.9 test/fixtures/features/step_definitions.rb
hydra-0.19.4 test/fixtures/features/step_definitions.rb
hydra-0.19.3 test/fixtures/features/step_definitions.rb
hydra-0.19.2 test/fixtures/features/step_definitions.rb
hydra-0.19.1 test/fixtures/features/step_definitions.rb
hydra-0.19.0 test/fixtures/features/step_definitions.rb
hydra-0.18.0 test/fixtures/features/step_definitions.rb
sskirby-hydra-0.17.1 test/fixtures/features/step_definitions.rb
sskirby-hydra-0.16.10 test/fixtures/features/step_definitions.rb
hydra-0.17.0 test/fixtures/features/step_definitions.rb
sskirby-hydra-0.16.9 test/fixtures/features/step_definitions.rb
hydra-0.16.7 test/fixtures/features/step_definitions.rb
hydra-0.16.6 test/fixtures/features/step_definitions.rb