hydra/test/fixtures/write_file_spec.rb
Nick Gauthier c1c44f89d2 first burst on rspec support. not done yet.
hard part is done, but it needs some fine-tuning to
run files properly. stay tuned!
2010-04-03 17:27:27 -04:00

9 lines
177 B
Ruby

require 'tmpdir'
context "file writing" do
it "writes to a file" do
File.open(File.join(Dir.tmpdir, 'hydra_test.txt'), 'a') do |f|
f.write "HYDRA"
end
end
end