spec/support/macros/mock_helpers.rb in daigaku-0.0.2 vs spec/support/macros/mock_helpers.rb in daigaku-0.1.0

- old
+ new

@@ -5,10 +5,15 @@ end def use_test_storage_file Daigaku::Configuration.send(:new) Daigaku.config.instance_variable_set(:@storage_file, local_storage_file) - Daigaku::Database.send(:new) + + QuickStore.configure do |config| + config.file_path = Daigaku.config.storage_file + end + + QuickStore.store.send(:new) end def suppress_print_out allow(described_class).to receive(:say_warning) {} allow(described_class).to receive(:say_info) {}