diff --git a/spec/support/stubbed_repository.rb b/spec/support/stubbed_repository.rb
index 5fd8631a335b9f6c5514dc41224f9b66f708262c..6376c8d5ea1a7814b7e5c2d4a96157779e759ef3 100644
--- a/spec/support/stubbed_repository.rb
+++ b/spec/support/stubbed_repository.rb
@@ -56,6 +56,10 @@ module Gitlab
       true
     end
 
+    def mv_repository name, new_name
+      true
+    end
+
     def remove_repository name
       true
     end