Sha256: 1b4247e251a2324668fe0fa4e21d34208279c376f5e7f759664de6a84f7e88ea

Contents?: true

Size: 544 Bytes

Versions: 4

Compression:

Stored size: 544 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_blather)
      %w(connect disconnect create_node delete_node subscribe unsubscribe publish).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.4 test/omf_common/comm_spec.rb
omf_common-6.0.0.pre.3 test/omf_common/comm_spec.rb
omf_common-6.0.0.pre.2 test/omf_common/comm_spec.rb
omf_common-6.0.0.pre.1 test/omf_common/comm_spec.rb