summaryrefslogtreecommitdiff
path: root/features/steps/shared/authentication.rb
diff options
context:
space:
mode:
authorrandx <dmitriy.zaporozhets@gmail.com>2012-09-27 23:23:11 +0300
committerrandx <dmitriy.zaporozhets@gmail.com>2012-09-27 23:23:11 +0300
commit9cabe04368024f44881e4269a008156f1629ab86 (patch)
tree56e27d7619690536fcda54c57acfb105f2b830dd /features/steps/shared/authentication.rb
parent68f4b59738b43d9d6969528188ec74a87546a29f (diff)
downloadgitlab-ce-9cabe04368024f44881e4269a008156f1629ab86.tar.gz
tests for: Profile -> History
Diffstat (limited to 'features/steps/shared/authentication.rb')
-rw-r--r--features/steps/shared/authentication.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/features/steps/shared/authentication.rb b/features/steps/shared/authentication.rb
index 2add91617fe..8c501bbc537 100644
--- a/features/steps/shared/authentication.rb
+++ b/features/steps/shared/authentication.rb
@@ -11,4 +11,8 @@ module SharedAuthentication
Given 'I sign in as an admin' do
login_as :admin
end
+
+ def current_user
+ @user || User.first
+ end
end