Sha256: 5f1dc39e6f9eb246b8a84b07e4d559b95950887bb639d4c26740cdc6501558c2

Contents?: true

Size: 812 Bytes

Versions: 42

Compression:

Stored size: 812 Bytes

Contents

# frozen_string_literal: true

require 'avm/eac_rails_base0/apache_path'
require 'avm/eac_rails_base0/instance'

RSpec.describe ::Avm::EacRailsBase0::ApachePath do
  describe '#no_ssl_site_content' do
    let(:instance) { ::Avm::EacRailsBase0::Instance.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::FS_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

42 entries across 42 versions & 2 rubygems

Version Path
eac_tools-0.22.0 sub/avm-eac_rails_base0/spec/lib/avm/eac_rails_base0/apache_path_spec.rb
eac_tools-0.21.0 sub/avm-eac_rails_base0/spec/lib/avm/eac_rails_base0/apache_path_spec.rb
eac_tools-0.20.0 sub/avm-eac_rails_base0/spec/lib/avm/eac_rails_base0/apache_path_spec.rb
eac_tools-0.19.0 sub/avm-eac_rails_base0/spec/lib/avm/eac_rails_base0/apache_path_spec.rb
eac_tools-0.18.0 sub/avm-eac_rails_base0/spec/lib/avm/eac_rails_base0/apache_path_spec.rb
eac_tools-0.17.0 sub/avm-eac_rails_base0/spec/lib/avm/eac_rails_base0/apache_path_spec.rb
eac_tools-0.16.1 sub/avm-eac_rails_base0/spec/lib/avm/eac_rails_base0/apache_path_spec.rb
eac_tools-0.16.0 sub/avm-eac_rails_base0/spec/lib/avm/eac_rails_base0/apache_path_spec.rb
eac_tools-0.15.0 sub/avm-eac_rails_base0/spec/lib/avm/eac_rails_base0/apache_path_spec.rb
eac_tools-0.14.0 sub/avm-eac_rails_base0/spec/lib/avm/eac_rails_base0/apache_path_spec.rb
eac_tools-0.13.0 sub/avm-eac_rails_base0/spec/lib/avm/eac_rails_base0/apache_path_spec.rb
eac_tools-0.12.0 sub/avm-eac_rails_base0/spec/lib/avm/eac_rails_base0/apache_path_spec.rb
eac_tools-0.11.1 sub/avm-eac_rails_base0/spec/lib/avm/eac_rails_base0/apache_path_spec.rb
eac_tools-0.11.0 sub/avm-eac_rails_base0/spec/lib/avm/eac_rails_base0/apache_path_spec.rb
eac_tools-0.10.0 sub/avm-eac_rails_base0/spec/lib/avm/eac_rails_base0/apache_path_spec.rb
eac_tools-0.9.0 sub/avm-eac_rails_base0/spec/lib/avm/eac_rails_base0/apache_path_spec.rb
eac_tools-0.8.0 sub/avm-eac_rails_base0/spec/lib/avm/eac_rails_base0/apache_path_spec.rb
eac_tools-0.7.0 sub/avm-eac_rails_base0/spec/lib/avm/eac_rails_base0/apache_path_spec.rb
eac_tools-0.6.0 sub/avm-eac_rails_base0/spec/lib/avm/eac_rails_base0/apache_path_spec.rb
eac_tools-0.5.0 sub/avm-eac_rails_base0/spec/lib/avm/eac_rails_base0/apache_path_spec.rb