Sha256: 76b6b5f72c745b2e7c7ff640b2c8763e78dcc6a893f9089f51fb76a4d04e64b9

Contents?: true

Size: 842 Bytes

Versions: 8

Compression:

Stored size: 842 Bytes

Contents

# -*- coding: utf-8 -*-
require File.expand_path(File.dirname(__FILE__) + '/../../../spec_helper')

describe 'Tengine::Support::Config::Amqp' do

  context "static" do
    describe Tengine::Support::Config::Amqp::Connection.host do
      it { subject.should be_a(Tengine::Support::Config::Definition::Field)}
      its(:type){ should == :string }
      its(:__name__){ should == :host }
      its(:description){ should == 'hostname to connect queue.'}
      its(:default){ should == 'localhost'}
    end

    describe Tengine::Support::Config::Amqp::Connection.port do
      it { subject.should be_a(Tengine::Support::Config::Definition::Field)}
      its(:type){ should == :integer }
      its(:__name__){ should == :port }
      its(:description){ should == 'port to connect queue.'}
      its(:default){ should == 5672}
    end
  end

end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
tengine_support-0.3.25 spec/tengine/support/config/amqp_spec.rb
tengine_support-0.3.24 spec/tengine/support/config/amqp_spec.rb
tengine_support-0.3.22 spec/tengine/support/config/amqp_spec.rb
tengine_support-0.3.21 spec/tengine/support/config/amqp_spec.rb
tengine_support-0.3.20 spec/tengine/support/config/amqp_spec.rb
tengine_support-0.3.19 spec/tengine/support/config/amqp_spec.rb
tengine_support-0.3.18 spec/tengine/support/config/amqp_spec.rb
tengine_support-0.3.17 spec/tengine/support/config/amqp_spec.rb