aboutsummaryrefslogtreecommitdiffstats
path: root/test/stubs/user.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/stubs/user.rb')
-rw-r--r--test/stubs/user.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/stubs/user.rb b/test/stubs/user.rb
index bce7dfc49e..a66b4f87d5 100644
--- a/test/stubs/user.rb
+++ b/test/stubs/user.rb
@@ -6,6 +6,10 @@ class User
end
def to_global_id
- "User##{name}"
+ GlobalID.new("User##{name}")
+ end
+
+ def to_gid_param
+ to_global_id.to_param
end
end