summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2019-06-25 19:55:54 +0000
committerRobert Speicher <rspeicher@gmail.com>2019-06-25 19:55:54 +0000
commit2524ec9a9a0ebdb8dc3790d2596a0b992b1d841f (patch)
tree62c3eeede6c104b0bb1467c3879d89827a99faaf
parent76889a9956e76e300edc8993048c3cd5c3a24da0 (diff)
parent004ff651964e74811bb553590eee495b6ceaab38 (diff)
downloadgitlab-ce-2524ec9a9a0ebdb8dc3790d2596a0b992b1d841f.tar.gz
Merge branch 'sh-squelch-null-store' into 'master'
Squelch output of ActiveSupport::Cache::NullStore in tests See merge request gitlab-org/gitlab-ce!30055
-rw-r--r--spec/support/inspect_squelch.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/support/inspect_squelch.rb b/spec/support/inspect_squelch.rb
new file mode 100644
index 00000000000..8ee6732370b
--- /dev/null
+++ b/spec/support/inspect_squelch.rb
@@ -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