Sha256: c1424a875609043744433e3bc63d134daaf2d4c662f43073bddf9886bfa1bcbd
Contents?: true
Size: 586 Bytes
Versions: 2
Compression:
Stored size: 586 Bytes
Contents
module MockHelpers def mock_default_window allow_any_instance_of(described_class).to receive(:default_window) { true } end def use_test_storage_file Daigaku::Configuration.send(:new) Daigaku.config.instance_variable_set(:@storage_file, local_storage_file) Daigaku::Database.send(:new) end def suppress_print_out allow(described_class).to receive(:say_warning) {} allow(described_class).to receive(:say_info) {} allow(described_class).to receive(:say) {} allow($stdout).to receive(:puts) {} allow($stdout).to receive(:print) {} end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
daigaku-0.0.2 | spec/support/macros/mock_helpers.rb |
daigaku-0.0.1 | spec/support/macros/mock_helpers.rb |