Sha256: 25bfb24b941c7983d9fdeb6b912e64ad20e300c870a20fed5bbcb32edc2e4f0f
Contents?: true
Size: 484 Bytes
Versions: 2
Compression:
Stored size: 484 Bytes
Contents
# frozen_string_literal: true require 'spec_helper' describe Grape::DSL::Logger do subject { Class.new(dummy_logger) } let(:dummy_logger) do Class.new do extend Grape::DSL::Logger end end let(:logger) { instance_double(::Logger) } describe '.logger' do it 'sets a logger' do subject.logger logger expect(subject.logger).to eq logger end it 'returns a logger' do expect(subject.logger(logger)).to eq logger end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
grape-1.6.2 | spec/grape/dsl/logger_spec.rb |
grape-1.6.1 | spec/grape/dsl/logger_spec.rb |