Sha256: a4fc910b3798025bcbb3743e1aa0b5388874d1f2d34dea23210f3976cfc9dc82
Contents?: true
Size: 526 Bytes
Versions: 3
Compression:
Stored size: 526 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
grape-0.16.2 | spec/grape/dsl/logger_spec.rb |
grape-0.16.1 | spec/grape/dsl/logger_spec.rb |
grape-0.15.0 | spec/grape/dsl/logger_spec.rb |