diff options
Diffstat (limited to 'spec/lib/system_check_spec.rb')
-rw-r--r-- | spec/lib/system_check_spec.rb | 21 |
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 |