Sha256: 467f683942791265a9e176a5f85dd355957e2f04ad93304c8ff8b36b3f48a942

Contents?: true

Size: 627 Bytes

Versions: 2

Compression:

Stored size: 627 Bytes

Contents

# frozen_string_literal: true

require 'spec_helper'

describe USPSFlags::Config do
  describe 'general configuration' do
    it 'should correctly set the burgees_dir in USPSFlags::Config' do
      expect(USPSFlags.configuration.burgees_dir).to eql($tmp_burgees_dir)
    end
  end

  describe 'Rails configuration' do
    before(:each) do
      class Rails
        def self.root
          'tmp/rails_app'
        end
      end

      @config = USPSFlags::Config.new
    end

    it 'should use the default Rails log directory' do
      expect(@config.burgees_dir).to eql('tmp/rails_app/app/lib/usps-burgees')
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
usps_flags-burgees-0.1.1 spec/usps_flags/burgees/config_spec.rb
usps_flags-burgees-0.1.0 spec/usps_flags/burgees/config_spec.rb