require 'spec_helper'

describe ElectricSheep::Notifier do
  NotifierKlazz = Class.new do
    include ElectricSheep::Notifier
  end

  describe NotifierKlazz do
    it 'makes initialization options available' do
      notifier = subject.new(job = mock, hosts = mock, logger = mock, mock)
      notifier.logger.must_equal logger
      notifier.job.must_equal job
      notifier.hosts.must_equal hosts
    end
  end
end
