lib/submodules/ably-ruby/spec/unit/logger_spec.rb in ably-rest-1.0.5 vs lib/submodules/ably-ruby/spec/unit/logger_spec.rb in ably-rest-1.0.6
- old
+ new
@@ -119,18 +119,10 @@
expect { subject }.to raise_error ArgumentError, /The custom Logger's interface does not provide the method/
end
end
context 'with a valid interface' do
- let(:custom_logger) do
- Class.new do
- extend Forwardable
- def initialize
- @logger = Logger.new(STDOUT)
- end
- def_delegators :@logger, :fatal, :error, :warn, :info, :debug, :level, :level=
- end
- end
+ let(:custom_logger) { TestLogger }
let(:custom_logger_object) { custom_logger.new }
subject { Ably::Logger.new(rest_client, Logger::INFO, custom_logger_object) }
it 'is used' do