Sha256: c5ecf41df44846df6f3939a6e073e19aef6c8b456523214863cad1e77fc9575d
Contents?: true
Size: 829 Bytes
Versions: 1
Compression:
Stored size: 829 Bytes
Contents
require 'spec_helper' module Grape module DSL module ConfigurationSpec class Dummy include Grape::DSL::Configuration # rubocop:disable TrivialAccessors def self.last_desc @last_description end # rubocop:enable TrivialAccessors end end describe Configuration do subject { Class.new(ConfigurationSpec::Dummy) } let(:logger) { double(:logger) } describe '.logger' do it 'sets a logger' do subject.logger logger expect(subject.logger).to eq logger end end describe '.desc' do it 'sets a description' do options = { message: 'none' } subject.desc options expect(subject.last_desc).to eq(description: options) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
grape-0.9.0 | spec/grape/dsl/configuration_spec.rb |