summaryrefslogtreecommitdiff
path: root/features/support
diff options
context:
space:
mode:
authorAngus MacArthur <amacarthur@blackberry.com>2013-10-04 15:11:50 -0400
committerAngus MacArthur <amacarthur@blackberry.com>2013-10-16 01:20:53 -0400
commitaefe2e952f33267ce38fb9270400f4f6f194d37b (patch)
tree3546807c2b7942585a41cfb1163dc5e6a69e40e0 /features/support
parenta8eb525e72f6883a07539af9429ccd41dbc8698b (diff)
downloadgitlab-ce-aefe2e952f33267ce38fb9270400f4f6f194d37b.tar.gz
Fixing unsafe use of Thread.current variable :current_user
Diffstat (limited to 'features/support')
-rw-r--r--features/support/env.rb2
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
+