$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
require 'bunny_farm'

require 'minitest/autorun'

class MyMessageClass < BunnyFarm::Message
  fields :field1, :field2, {field3: [:a, :b]}, {field4: [:c, :d]}
  actions :test
  def test
    success!
  end
end

AMQP_CONFIG = Hashie::Mash.new

class Stub
  def publish(*args)
    true
  end
end

AMQP_CONFIG.exchange = Stub.new
