Squelch output of ActiveSupport::Cache::NullStore in tests

When a spec fails relating to the cache, the job log can easily exceed
the maximum length and make it harder to see the actual issue
(e.g. https://gitlab.com/gitlab-org/gitlab-ee/-/jobs/239803017).
This commit is contained in:
Stan Hu 2019-06-25 11:52:56 -07:00
parent 76889a9956
commit 004ff65196
1 changed files with 7 additions and 0 deletions

View File

@ -0,0 +1,7 @@
# This class can generate a lot of output if it fails,
# so squelch the instance variable output.
class ActiveSupport::Cache::NullStore
def inspect
"<#{self.class}>"
end
end