Sha256: c5cd747260a3e9b42425441eb57f723c5dc0662217f5a16ef670af93a08ce060

Contents?: true

Size: 665 Bytes

Versions: 2

Compression:

Stored size: 665 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
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
cp-sparrow-0.0.12 spec/unit/camel_caser_spec.rb
cp-sparrow-0.0.11 spec/unit/camel_caser_spec.rb