diff options
author | Patrick J Cherry <patrick@bytemark.co.uk> | 2017-01-31 10:13:59 +0000 |
---|---|---|
committer | Patrick J Cherry <patrick@bytemark.co.uk> | 2017-01-31 10:13:59 +0000 |
commit | fef18de531737c8bb819794b9db8c6630a85a5a9 (patch) | |
tree | 7dbcfb98d9293c8797809e560386e6b1c5a86ba1 /test/tc_restore_file.rb | |
parent | e840018421c47545526e13adb4c7eee3e503c417 (diff) |
Tidy up requires in tests, fix Tempfile filename stem
Diffstat (limited to 'test/tc_restore_file.rb')
-rw-r--r-- | test/tc_restore_file.rb | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/test/tc_restore_file.rb b/test/tc_restore_file.rb index e9544f9..8284275 100644 --- a/test/tc_restore_file.rb +++ b/test/tc_restore_file.rb @@ -1,5 +1,3 @@ -$: << File.dirname(__FILE__)+"/../lib" - require 'test/unit' require 'byteback/restore_file' require 'tempfile' @@ -20,8 +18,7 @@ class BytebackFileTest < Test::Unit::TestCase end def test_general - f = Tempfile.new($0, @snapshot_path) - puts f.path + f = Tempfile.new("restore-file-", @snapshot_path) system("setfattr --name user.rsync.%stat -v \"41755 12,34 56:78\" #{f.path}") b = Byteback::RestoreFile.new(f.path, @byteback_root) assert_equal(041755, b.mode) |