Sha256: 75f03d1cdebcfdd80d5e60edaedb84aa9cf775aa4694371aa11eaa3c45a85bad

Contents?: true

Size: 551 Bytes

Versions: 4

Compression:

Stored size: 551 Bytes

Contents

require 'test_helper'

describe OmfCommon::Comm do
  describe 'when initialised with a pubsub implementation' do
    it 'must return a instance with all methods defined in corresponding module loaded' do
      @comm = OmfCommon::Comm.new(:xmpp)
      %w(connect disconnect create_topic delete_topic subscribe unsubscribe publish affiliations).each do |m|
        @comm.must_respond_to m
      end

      # also existing blather DSL should work  too
      %w(when_ready shutdown).each do |m|
        @comm.must_respond_to m
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
omf_common-6.0.0.pre.10 test/omf_common/comm_spec.rb
omf_common-6.0.0.pre.8 test/omf_common/comm_spec.rb
omf_common-6.0.0.pre.7 test/omf_common/comm_spec.rb
omf_common-6.0.0.pre.6 test/omf_common/comm_spec.rb