# frozen_string_literal: true require "spec_helper" describe Ethon::Loggable do describe "#logger=" do let(:logger) do Logger.new($stdout).tap do |log| log.level = Logger::INFO end end before do Ethon.logger = logger end it "sets the logger" do expect(Ethon.logger).to eq(logger) end end end