Sha256: ca34ed6004c995864aabe02359366ab3671a02b35ff7afe8e966df04d18f01b1
Contents?: true
Size: 803 Bytes
Versions: 3
Compression:
Stored size: 803 Bytes
Contents
require 'spec_helper' describe Sparrow do describe '.configuration' do it 'should return a Configuration object' do expect(Sparrow.configuration).to( be_an_instance_of(Sparrow::Configuration)) end end describe '.configure' do it 'should yield the configuration and save it' do Sparrow.configure do |configuration| configuration.json_request_format_header = 'panda' configuration.excluded_routes = ['panda'] end configuration = Sparrow.configuration expect(configuration.json_request_format_header).to eq 'panda' expect(configuration.excluded_routes).to eq ['panda'] end end describe '.logger' do it 'returns a Sparrow::Logger' do expect(Sparrow.logger).to be_kind_of Sparrow::Logger end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
cp-sparrow-0.0.16 | spec/unit/sparrow_spec.rb |
cp-sparrow-0.0.15 | spec/unit/sparrow_spec.rb |
cp-sparrow-0.0.14 | spec/unit/sparrow_spec.rb |