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