spec/flydata/command/sync_spec.rb in flydata-0.8.0 vs spec/flydata/command/sync_spec.rb in flydata-0.8.1

- old
+ new

@@ -452,11 +452,11 @@ context 'when called with --all' do let(:arg_tables) { [] } let(:command_options) { ["-y", "--all"] } let(:sync_info) { nil } it do - expect(subject_object).to receive(:set_current_tables).with([], resume: false).and_call_original + expect(subject_object).to receive(:set_current_tables).with([], resume: false, include_unregistered: false).and_call_original expect(subject_object).to receive(:wait_for_server_buffer).with( {:timeout=>timeout_value, :tables=>arg_tables} ) expect(subject_object).to receive(:cleanup_sync_server).with( default_data_entry, arg_tables ) subject end end @@ -480,11 +480,11 @@ context 'when the aborted init-sync was for all tables in the application' do let(:is_full_init_sync) { true } let(:sync_info_tables) { ["table1", "table2", "table4"] } let(:target_tables_for_api) { [] } it do - expect(subject_object).to receive(:set_current_tables).with([], resume: true).and_call_original + expect(subject_object).to receive(:set_current_tables).with([], resume: true, include_unregistered: false).and_call_original expect(subject_object).to receive(:wait_for_server_buffer).with( {:timeout=>timeout_value, :tables=>target_tables_for_api} ) expect(subject_object).to receive(:cleanup_sync_server).with( default_data_entry, sync_info_tables ) subject @@ -494,11 +494,11 @@ context 'when the aborted init-sync was for a part of tables in the application' do let(:is_full_init_sync) { false } let(:sync_info_tables) { ["table2"] } let(:target_tables_for_api) { sync_info_tables } it do - expect(subject_object).to receive(:set_current_tables).with([], resume: true).and_call_original + expect(subject_object).to receive(:set_current_tables).with([], resume: true, include_unregistered: false).and_call_original expect(subject_object).to receive(:wait_for_server_buffer).with( {:timeout=>timeout_value, :tables=>target_tables_for_api} ) expect(subject_object).to receive(:cleanup_sync_server).with( default_data_entry, sync_info_tables ) subject @@ -517,10 +517,10 @@ allow_any_instance_of(SyncFileManager).to receive(:get_new_table_list).with(full_tables, "pos").and_return([]) allow_any_instance_of(SyncFileManager).to receive(:get_new_table_list).with(new_tables, "pos").and_return(new_tables) allow_any_instance_of(SyncFileManager).to receive(:get_new_table_list).with(full_tables, "generated_ddl").and_return([]) end it do - expect(subject_object).to receive(:set_current_tables).with(arg_tables, resume: true).and_call_original + expect(subject_object).to receive(:set_current_tables).with(arg_tables, resume: true, include_unregistered: false).and_call_original expect(subject_object).to receive(:wait_for_server_buffer).with( {:timeout=>timeout_value, :tables=>arg_tables} ) expect(subject_object).to receive(:cleanup_sync_server).with( default_data_entry, arg_tables ) subject