spec/flydata/command/sync_spec.rb in flydata-0.7.17 vs spec/flydata/command/sync_spec.rb in flydata-0.7.18
- old
+ new
@@ -114,10 +114,11 @@
end
context 'with no stream option' do
before do
expect(default_sync_fm).to receive(:save_sync_info).once
+ expect(default_sync_fm).to receive(:load_sync_info).and_return(nil, {})
expect(subject).to receive(:free_disk_space).and_return(disk_byte)
expect(File).to receive(:dirname)
end
it 'will export to dump file' do
expect(subject).to receive(:call_block_or_return_io)
@@ -137,9 +138,10 @@
end
context 'with stream option' do
it 'will export to io' do
expect(default_sync_fm).to receive(:save_sync_info).once
+ expect(default_sync_fm).to receive(:load_sync_info).and_return(nil, {})
expect_any_instance_of(Flydata::SourceMysql::Parser::MysqlDumpGeneratorNoMasterData).to receive(:dump)
subject.send(:generate_source_dump, default_data_entry, default_sync_fm, false)
end
end