require 'spec_helper'

if RUBY_PLATFORM != 'java'

  describe "Bunny AMQP Config" do
    it "converts :username in the config to :user" do
      Travis::Amqp.config = { :username => 'user' }
      Travis::Amqp.config.should == { :user => 'user' }
    end

    it "converts :password in the config to :pass" do
      Travis::Amqp.config = { :password => 'password' }
      Travis::Amqp.config.should == { :pass => 'password' }
    end

    it "converts a string tls value to a boolean" do
      Travis::Amqp.config = { :tls => 'yep' }
      Travis::Amqp.config.should == { :tls => true }
    end
  end

end

require 'spec_helper'

if RUBY_PLATFORM != 'java'

  describe "Bunny AMQP Config" do
    it "converts :username in the config to :user" do
      Travis::Amqp.config = { :username => 'user' }
      Travis::Amqp.config.should == { :user => 'user' }
    end

    it "converts :password in the config to :pass" do
      Travis::Amqp.config = { :password => 'password' }
      Travis::Amqp.config.should == { :pass => 'password' }
    end

    it "converts a string tls value to a boolean" do
      Travis::Amqp.config = { :tls => 'yep' }
      Travis::Amqp.config.should == { :ssl => true }
    end
  end

end

Fix test for ssl option for bunny
Fix test for ssl option for bunny
