diff options
author | Angus MacArthur <amacarthur@blackberry.com> | 2013-10-04 23:11:50 +0400 |
---|---|---|
committer | Angus MacArthur <amacarthur@blackberry.com> | 2013-10-16 09:20:53 +0400 |
commit | aefe2e952f33267ce38fb9270400f4f6f194d37b (patch) | |
tree | 3546807c2b7942585a41cfb1163dc5e6a69e40e0 /features/support | |
parent | a8eb525e72f6883a07539af9429ccd41dbc8698b (diff) |
Fixing unsafe use of Thread.current variable :current_user
Diffstat (limited to 'features/support')
-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 + |