diff options
author | randx <dmitriy.zaporozhets@gmail.com> | 2012-09-27 23:23:11 +0300 |
---|---|---|
committer | randx <dmitriy.zaporozhets@gmail.com> | 2012-09-27 23:23:11 +0300 |
commit | 9cabe04368024f44881e4269a008156f1629ab86 (patch) | |
tree | 56e27d7619690536fcda54c57acfb105f2b830dd /features/steps/shared/authentication.rb | |
parent | 68f4b59738b43d9d6969528188ec74a87546a29f (diff) | |
download | gitlab-ce-9cabe04368024f44881e4269a008156f1629ab86.tar.gz |
tests for: Profile -> History
Diffstat (limited to 'features/steps/shared/authentication.rb')
-rw-r--r-- | features/steps/shared/authentication.rb | 4 |
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 |