test/paths/file_test.rb in iostreams-1.0.0.beta2 vs test/paths/file_test.rb in iostreams-1.0.0.beta3

- old
+ new

@@ -15,26 +15,9 @@ path = root.join('some_test_dir/test_file2.txt') path.writer { |io| io << "Hello World2" } path end - describe '.temp_file' do - it 'returns value from block' do - result = IOStreams::Paths::File.temp_file('base', '.ext') { |_path| 257 } - assert_equal 257, result - end - - it 'supplies new temp file_name' do - path1 = nil - path2 = nil - IOStreams::Paths::File.temp_file('base', '.ext') { |path| path1 = path } - IOStreams::Paths::File.temp_file('base', '.ext') { |path| path2 = path } - refute_equal path1.to_s, path2.to_s - assert path1.is_a?(IOStreams::Paths::File), path1 - assert path2.is_a?(IOStreams::Paths::File), path2 - end - end - describe '#each_child' do it 'iterates an empty path' do none = nil directory.join('does_not_exist').mkdir.each_child { |path| none = path } assert_nil none