Sha256: 66c630f2581faf84390393664be65cd2c7068656a7f40370ecbbb1c427424d38
Contents?: true
Size: 1.13 KB
Versions: 1
Compression:
Stored size: 1.13 KB
Contents
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper') require File.expand_path(File.dirname(__FILE__) + '/app_shared') module DDETest describe DDE::Monitor, " in general" do it_should_behave_like "DDE App" end describe DDE::Monitor do before(:each){ } after(:each){ @monitor.stop_dde if @monitor.dde_active? } # SEEMS LIKE IT DOESN'T stop system from sending :XTYP_MONITOR transactions to already dead callback :( it 'starts without constructor parameters' do @monitor = DDE::Monitor.new @monitor.id.should be_an Integer @monitor.id.should_not == 0 @monitor.dde_active?.should == true @monitor.init_flags.should == APPCLASS_MONITOR | # this is monitor MF_CALLBACKS | # monitor callback functions MF_CONV | # monitor conversation data MF_ERRORS | # monitor DDEML errors MF_HSZ_INFO | # monitor data handle activity MF_LINKS | # monitor advise loops MF_POSTMSGS | # monitor posted DDE messages MF_SENDMSGS # monitor sent DDE messages end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dde-0.2.9 | spec/dde/monitor_spec.rb |