1234567891011121314151617 |
- module SystemInitDoneHelper
- def system_init_done(state = true)
-
-
- allow(Setting).to receive(:exists?).and_call_original
-
-
- allow(Setting).to receive(:exists?).with(name: 'system_init_done').and_return(state)
- end
- end
- RSpec.configure do |config|
- config.include SystemInitDoneHelper
- end
|