Sha256: 3c2d622445351430485bf1dcf7cc7dfb738e4aa28896d850b556b5d310a06402
Contents?: true
Size: 1.74 KB
Versions: 1
Compression:
Stored size: 1.74 KB
Contents
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper') require File.expand_path(File.dirname(__FILE__) + '/server_shared') module DDETest describe DDE::XlServer do before(:each ){ @server = DDE::XlServer.new } it_should_behave_like "DDE Server" it 'new without parameters creates empty table attribute' do @server.table.should be_an DDE::XlTable @server.table.should be_empty end it 'new with attached callback block creates empty table attribute' do server = DDE::XlServer.new {|*args|} @server.table.should be_an DDE::XlTable @server.table.should be_empty end describe '#start_service' do context 'with inactive (uninitialized) DDE:' do it 'service name defaults to "excel" if not given explicitly' do @server.start_service {|*args|}.should be_true @server.service.should be_a DDE::DdeString @server.service.should == 'excel' @server.service.name.should == 'excel' @server.service.handle.should be_an Integer @server.service.handle.should_not == 0 @server.service_active?.should == true end end context 'with active (initialized) DDE:' do before(:each ){ @server = DDE::XlServer.new {|*args|}} it 'service name defaults to "excel" if not given explicitly' do @server.start_service.should be_true @server.service.should be_a DDE::DdeString @server.service.should == 'excel' @server.service.name.should == 'excel' @server.service.handle.should be_an Integer @server.service.handle.should_not == 0 end end end # describe '#start_service' end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dde-0.2.2 | spec/dde/xl_server_spec.rb |