require 'test/unit' class MoveTest < Test::Unit::TestCase include MirrorTest def testSimpleMove root = use_source file1 = File.join(root, "file1") File.open(file1, "w") do |f| f.puts("Some content") end @p4.run_add(file1) @p4.run_submit("-d", "File added") file2 = File.join(root, "file2") @p4.run_edit(file1) @p4.run_move(file1, file2) mirror_and_compare() root = use_target opened = @p4.run_opened("#{root}/...") assert(opened.length == 2, "Not two files open under target root") end end