diff options
author | Valery Sizov <vsv2711@gmail.com> | 2015-09-15 16:42:02 +0300 |
---|---|---|
committer | Valery Sizov <vsv2711@gmail.com> | 2015-09-15 17:43:17 +0300 |
commit | b87ca7500f174cc9a4e90b262b02aa9bf695fbee (patch) | |
tree | 252237f0ea72354fbd2ec140580bcca7503a400f /spec/support | |
parent | 88b3195ecfd2d0d74c4e76ce79961cb6db2f8643 (diff) |
fix specs. Stage 7
Diffstat (limited to 'spec/support')
-rw-r--r-- | spec/support/login_helpers.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/support/login_helpers.rb b/spec/support/login_helpers.rb index ffe30a4246c..cd9fdc6f18e 100644 --- a/spec/support/login_helpers.rb +++ b/spec/support/login_helpers.rb @@ -44,4 +44,8 @@ module LoginHelpers def logout_direct page.driver.submit :delete, '/users/sign_out', {} end + + def skip_ci_admin_auth + allow_any_instance_of(Ci::Admin::ApplicationController).to receive_messages(authenticate_admin!: true) + end end |