Sha256: b66a5590b8e5762f9c048a23598c659c172c494bd5a910361f3380fcd1ae04e2

Contents?: true

Size: 527 Bytes

Versions: 18

Compression:

Stored size: 527 Bytes

Contents

require 'spec_helper'

module Grape
  module DSL
    module LoggerSpec
      class Dummy
        extend Grape::DSL::Logger
      end
    end
    describe Logger do
      subject { Class.new(LoggerSpec::Dummy) }
      let(:logger) { 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
  end
end

Version data entries

18 entries across 18 versions & 2 rubygems

Version Path
grape-extra_validators-2.0.0 vendor/bundle/ruby/2.6.0/gems/grape-1.2.5/spec/grape/dsl/logger_spec.rb
grape-extra_validators-1.0.0 vendor/bundle/ruby/2.4.0/gems/grape-1.2.5/spec/grape/dsl/logger_spec.rb
grape-1.2.5 spec/grape/dsl/logger_spec.rb
grape-1.2.4 spec/grape/dsl/logger_spec.rb
grape-1.2.3 spec/grape/dsl/logger_spec.rb
grape-1.2.2 spec/grape/dsl/logger_spec.rb
grape-1.2.1 spec/grape/dsl/logger_spec.rb
grape-1.2.0 spec/grape/dsl/logger_spec.rb
grape-1.1.0 spec/grape/dsl/logger_spec.rb
grape-1.0.3 spec/grape/dsl/logger_spec.rb
grape-1.0.2 spec/grape/dsl/logger_spec.rb
grape-1.0.1 spec/grape/dsl/logger_spec.rb
grape-1.0.0 spec/grape/dsl/logger_spec.rb
grape-0.19.2 spec/grape/dsl/logger_spec.rb
grape-0.19.1 spec/grape/dsl/logger_spec.rb
grape-0.19.0 spec/grape/dsl/logger_spec.rb
grape-0.18.0 spec/grape/dsl/logger_spec.rb
grape-0.17.0 spec/grape/dsl/logger_spec.rb