diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-10-16 23:30:44 -0700 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-10-16 23:30:44 -0700 |
commit | 03dba1fd4299e7a0364aa94a845aaeca60b0c286 (patch) | |
tree | fe0716cdf7e410278d1b2edc8ac4f5eb81de6e31 /features/support/env.rb | |
parent | dad831662ad6521dfaf404621b72e551d456ca5c (diff) | |
parent | aefe2e952f33267ce38fb9270400f4f6f194d37b (diff) | |
download | gitlab-ce-03dba1fd4299e7a0364aa94a845aaeca60b0c286.tar.gz |
Merge pull request #5344 from amacarthur/thread-variable-fix
Fixing unsafe use of Thread.current variable :current_user
Diffstat (limited to 'features/support/env.rb')
-rw-r--r-- | features/support/env.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/features/support/env.rb b/features/support/env.rb index 8798e62ea72..d27a73edab8 100644 --- a/features/support/env.rb +++ b/features/support/env.rb @@ -51,4 +51,6 @@ Spinach.hooks.before_run do RSpec::Mocks::setup self include FactoryGirl::Syntax::Methods + MergeRequestObserver.any_instance.stub(current_user: create(:user)) end + |