Sha256: 60afe1dce68eb8b6edca992d846ba19ab7c8a844e2b66ad8c4e568ef1e98959e
Contents?: true
Size: 562 Bytes
Versions: 3
Compression:
Stored size: 562 Bytes
Contents
require 'spec_helper' describe 'Grape::Rabl configuration' do context 'configuration' do it 'returns default values' do expect(Grape::Rabl.configuration.cache_template_loading).to eq(false) end it 'should set and reset configuration' do Grape::Rabl.configure do |config| config.cache_template_loading = true end expect(Grape::Rabl.configuration.cache_template_loading).to eq(true) Grape::Rabl.reset_configuration! expect(Grape::Rabl.configuration.cache_template_loading).to eq(false) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
grape-rabl-0.5.0 | spec/grape_rabl_configuration.rb |
grape-rabl-0.4.3 | spec/grape_rabl_configuration.rb |
grape-rabl-0.4.2 | spec/grape_rabl_configuration.rb |