spec/flydata/command/sync_spec.rb in flydata-0.3.4 vs spec/flydata/command/sync_spec.rb in flydata-0.3.5
- old
+ new
@@ -63,9 +63,13 @@
subject.send(:cleanup_sync_server, default_data_entry)
end
end
end
describe '#do_generate_table_ddl' do
+ before do
+ allow(subject).to receive(:data_entry).and_return(default_data_entry)
+ subject.send(:set_current_tables)
+ end
shared_examples 'throws an error' do
it "throws an error" do
expect {
subject.send(:do_generate_table_ddl, default_data_entry)
}.to raise_error