Sha256: e2de60835aa46060a9ed2f23208c5362a1b840581b119ee7264448aff99fc1fa

Contents?: true

Size: 1.1 KB

Versions: 1

Compression:

Stored size: 1.1 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.11 spec/dde/monitor_spec.rb