spec/support/macros/mock_helpers.rb in daigaku-0.3.0 vs spec/support/macros/mock_helpers.rb in daigaku-0.4.0
- old
+ new
@@ -1,7 +1,6 @@
module MockHelpers
-
def mock_default_window
allow_any_instance_of(described_class).to receive(:default_window) { true }
end
def use_test_storage_file
@@ -14,12 +13,13 @@
QuickStore.store.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) {}
+ 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