Skip to content

Commit a5e7acc

Browse files
committed
Add function to move files
Signed-off-by: Agora Security <github@agora-security.com>
1 parent 186ee2c commit a5e7acc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/test_helper.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,10 @@ def update_file(path, content)
6969
def delete_file(path)
7070
File.delete(path)
7171
end
72+
73+
def move_file(source_path, target_path)
74+
File.rename source_path, target_path
75+
end
7276

7377
def new_file(name, contents)
7478
create_file(name,contents)

0 commit comments

Comments
 (0)