summaryrefslogtreecommitdiff
path: root/spec/lib/system_check_spec.rb
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-05-20 14:34:42 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2020-05-20 14:34:42 +0000
commit9f46488805e86b1bc341ea1620b866016c2ce5ed (patch)
treef9748c7e287041e37d6da49e0a29c9511dc34768 /spec/lib/system_check_spec.rb
parentdfc92d081ea0332d69c8aca2f0e745cb48ae5e6d (diff)
downloadgitlab-ce-9f46488805e86b1bc341ea1620b866016c2ce5ed.tar.gz
Add latest changes from gitlab-org/gitlab@13-0-stable-ee
Diffstat (limited to 'spec/lib/system_check_spec.rb')
-rw-r--r--spec/lib/system_check_spec.rb21
1 files changed, 12 insertions, 9 deletions
diff --git a/spec/lib/system_check_spec.rb b/spec/lib/system_check_spec.rb
index f3ed6ca31c9..da1916455ba 100644
--- a/spec/lib/system_check_spec.rb
+++ b/spec/lib/system_check_spec.rb
@@ -4,19 +4,22 @@ require 'spec_helper'
require 'rake_helper'
describe SystemCheck do
- class SimpleCheck < SystemCheck::BaseCheck
- def check?
- true
+ before do
+ stub_const('SimpleCheck', Class.new(SystemCheck::BaseCheck))
+ stub_const('OtherCheck', Class.new(SystemCheck::BaseCheck))
+
+ SimpleCheck.class_eval do
+ def check?
+ true
+ end
end
- end
- class OtherCheck < SystemCheck::BaseCheck
- def check?
- false
+ OtherCheck.class_eval do
+ def check?
+ false
+ end
end
- end
- before do
silence_output
end