Sha256: ef12a138f499fb4815d5401804beb2ed995ae780d66cdef85dcc972e78bb09e2

Contents?: true

Size: 483 Bytes

Versions: 4

Compression:

Stored size: 483 Bytes

Contents

require 'test/unit'
require 'waffle/configuration'
require 'waffle/strategies/rabbitmq'

class RabbitmqTest < Test::Unit::TestCase

  def test_bad_initialization
    assert_raise ArgumentError do
      Waffle::Strategies::Rabbitmq.new
    end

    assert_raise ArgumentError do
      Waffle::Strategies::Rabbitmq.new 'crap'
    end
  end

  def test_good_initialization
    assert_nothing_raised do
      Waffle::Strategies::Rabbitmq.new Waffle::Configuration.new
    end
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
waffle-0.1.3 test/test_rabbitmq.rb
waffle-0.1.2 test/test_rabbitmq.rb
waffle-0.1.1 test/test_rabbitmq.rb
waffle-0.1.0 test/test_rabbitmq.rb