Sha256: 4df34d1f6467f6c90072b71e61440767eeb35c24944666ae91fcd76c6dc5f5d8

Contents?: true

Size: 500 Bytes

Versions: 11

Compression:

Stored size: 500 Bytes

Contents

require 'spec_helper'

describe Vx::Router::Configuration do
  let(:config) { Vx::Router.config }
  subject { config }

  before { Vx::Router.reset_config! }

  its(:timeout)  { should eq 1800 }
  its(:amqp_url) { should be_nil }

  context ".configure" do
    subject {
      Vx::Router.configure do |c|
        c.timeout = 1
        c.amqp_url = "2"
      end
    }
    its(:timeout)       { should eq 1 }
    its(:amqp_url)      { should eq "2" }
    its(:workers)       { should eq 1 }
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
vx-router-0.2.0.pre38 spec/lib/configuration_spec.rb
vx-router-0.2.0.pre37 spec/lib/configuration_spec.rb
vx-router-0.2.0.pre36 spec/lib/configuration_spec.rb
vx-router-0.2.0.pre35 spec/lib/configuration_spec.rb
vx-router-0.2.0.pre34 spec/lib/configuration_spec.rb
vx-router-0.2.0.pre33 spec/lib/configuration_spec.rb
vx-router-0.2.0.pre32 spec/lib/configuration_spec.rb
vx-router-0.2.0.pre31 spec/lib/configuration_spec.rb
vx-router-0.2.0.pre30 spec/lib/configuration_spec.rb
vx-router-0.2.0.pre29 spec/lib/configuration_spec.rb
vx-router-0.2.0.pre28 spec/lib/configuration_spec.rb