summaryrefslogtreecommitdiff
path: root/spec/models/ability_spec.rb
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2016-08-19 22:22:52 -0700
committerStan Hu <stanhu@gmail.com>2016-08-20 06:53:14 -0700
commit41d89533e61f6009b5d800afc00c184e2807eafd (patch)
treec609b79d6ac3c69a992859745fd354d021699288 /spec/models/ability_spec.rb
parenta16ac37e91cefec81d53b7ade755b04c67b4912c (diff)
downloadgitlab-ce-41d89533e61f6009b5d800afc00c184e2807eafd.tar.gz
Fix assorted rspec failures due to stale, cached user permissions
RequestStore is disabled in tests, but the Ability class was caching user permissions based on the user and project ID of previous test runs. Revise code to use RequestStore only if it is active.
Diffstat (limited to 'spec/models/ability_spec.rb')
0 files changed, 0 insertions, 0 deletions