# frozen_string_literal: true

RSpec.describe Miteru::Notifier do
  subject { described_class.new }

  describe "#notify" do
    context "when not given SLACK setting via ENV" do
      it "outputs a message to STDOUT" do
        out = capture(:stdout) {
          subject.notify(
            url: "http://test.com",
            kits: [],
            message: "test"
          )
        }
        expect(out).to include("test.com")
      end
    end
  end
end
