Sha256: 8a0b6960c48a9bc931d175dc026882dcd81a92b34fa8616c0965d95822339cd5

Contents?: true

Size: 952 Bytes

Versions: 3

Compression:

Stored size: 952 Bytes

Contents

require 'minimal_spec_helper'

describe HighVoltage::Configuration do
  describe 'basic config assignment' do
    let(:config_value) { 'fake_config_value' }

    before(:each) do
      HighVoltage.configure do |config|
        ActiveSupport::Deprecation.silence do
          config.content_path = config_value
          config.layout = config_value
          config.parent_engine = config_value
          config.route_drawer = config_value
          config.routes = config_value
        end
      end
    end

    after(:each) do
      HighVoltage.configure do |config|
        config.parent_engine = Rails.application
      end
    end

    it { expect(HighVoltage.content_path).to eq config_value }
    it { expect(HighVoltage.layout).to eq config_value }
    it { expect(HighVoltage.parent_engine).to eq config_value }
    it { expect(HighVoltage.route_drawer).to eq config_value }
    it { expect(HighVoltage.routes).to eq config_value }
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
high_voltage-3.1.1 spec/high_voltage/configuration_spec.rb
high_voltage-3.1.0 spec/high_voltage/configuration_spec.rb
high_voltage-3.0.0 spec/high_voltage/configuration_spec.rb