Sha256: ecc5f6e80b2d6121fcf0eb95a87bd89b93bb1e6768fb0112e001561db33277c0

Contents?: true

Size: 830 Bytes

Versions: 48

Compression:

Stored size: 830 Bytes

Contents

# frozen_string_literal: true

require 'avm/eac_rails_base0/apache_path'
require 'avm/eac_rails_base0/instances/base'

RSpec.describe ::Avm::EacRailsBase0::ApachePath do
  describe '#no_ssl_site_content' do
    let(:instance) { ::Avm::EacRailsBase0::Instances::Base.by_id('stub-app_0') }
    let(:apache_path) { described_class.new(instance) }
    let(:fixtures_dir) { ::Pathname.new('apache_path_spec_files').expand_path(__dir__) }
    let(:expect_file) { fixtures_dir.join('stub-app_0_apache_path.conf') }
    let(:expected_content) { expect_file.read }

    before do
      instance.entry(::Avm::Instances::EntryKeys::INSTALL_PATH).write('/path/to/stub-app_0')
      instance.entry('web.url').write('http://stubapp.net/stub-app_0')
    end

    it do
      expect(apache_path.content).to eq(expected_content)
    end
  end
end

Version data entries

48 entries across 48 versions & 1 rubygems

Version Path
eac_tools-0.56.0 sub/avm-eac_rails_base0/spec/lib/avm/eac_rails_base0/apache_path_spec.rb
eac_tools-0.55.7 sub/avm-eac_rails_base0/spec/lib/avm/eac_rails_base0/apache_path_spec.rb
eac_tools-0.55.6 sub/avm-eac_rails_base0/spec/lib/avm/eac_rails_base0/apache_path_spec.rb
eac_tools-0.55.5 sub/avm-eac_rails_base0/spec/lib/avm/eac_rails_base0/apache_path_spec.rb
eac_tools-0.55.4 sub/avm-eac_rails_base0/spec/lib/avm/eac_rails_base0/apache_path_spec.rb
eac_tools-0.55.3 sub/avm-eac_rails_base0/spec/lib/avm/eac_rails_base0/apache_path_spec.rb
eac_tools-0.55.2 sub/avm-eac_rails_base0/spec/lib/avm/eac_rails_base0/apache_path_spec.rb
eac_tools-0.55.1 sub/avm-eac_rails_base0/spec/lib/avm/eac_rails_base0/apache_path_spec.rb
eac_tools-0.55.0 sub/avm-eac_rails_base0/spec/lib/avm/eac_rails_base0/apache_path_spec.rb
eac_tools-0.54.0 sub/avm-eac_rails_base0/spec/lib/avm/eac_rails_base0/apache_path_spec.rb
eac_tools-0.53.0 sub/avm-eac_rails_base0/spec/lib/avm/eac_rails_base0/apache_path_spec.rb
eac_tools-0.52.0 sub/avm-eac_rails_base0/spec/lib/avm/eac_rails_base0/apache_path_spec.rb
eac_tools-0.51.0 sub/avm-eac_rails_base0/spec/lib/avm/eac_rails_base0/apache_path_spec.rb
eac_tools-0.50.0 sub/avm-eac_rails_base0/spec/lib/avm/eac_rails_base0/apache_path_spec.rb
eac_tools-0.49.0 sub/avm-eac_rails_base0/spec/lib/avm/eac_rails_base0/apache_path_spec.rb
eac_tools-0.48.1 sub/avm-eac_rails_base0/spec/lib/avm/eac_rails_base0/apache_path_spec.rb
eac_tools-0.48.0 sub/avm-eac_rails_base0/spec/lib/avm/eac_rails_base0/apache_path_spec.rb
eac_tools-0.47.2 sub/avm-eac_rails_base0/spec/lib/avm/eac_rails_base0/apache_path_spec.rb
eac_tools-0.47.1 sub/avm-eac_rails_base0/spec/lib/avm/eac_rails_base0/apache_path_spec.rb
eac_tools-0.47.0 sub/avm-eac_rails_base0/spec/lib/avm/eac_rails_base0/apache_path_spec.rb