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.4.0 sub/avm-tools/sub/avm-eac_rails_base0/spec/lib/avm/eac_rails_base0/apache_path_spec.rb
eac_tools-0.3.0 sub/avm-tools/sub/avm-eac_rails_base0/spec/lib/avm/eac_rails_base0/apache_path_spec.rb
eac_tools-0.2.2 sub/avm-tools/sub/avm-eac_rails_base0/spec/lib/avm/eac_rails_base0/apache_path_spec.rb
avm-tools-0.121.1 sub/avm-eac_rails_base0/spec/lib/avm/eac_rails_base0/apache_path_spec.rb
avm-tools-0.121.0 sub/avm-eac_rails_base0/spec/lib/avm/eac_rails_base0/apache_path_spec.rb
avm-tools-0.120.2 sub/avm-eac_rails_base0/spec/lib/avm/eac_rails_base0/apache_path_spec.rb
avm-tools-0.120.1 sub/avm-eac_rails_base0/spec/lib/avm/eac_rails_base0/apache_path_spec.rb
avm-tools-0.120.0 sub/avm-eac_rails_base0/spec/lib/avm/eac_rails_base0/apache_path_spec.rb
avm-tools-0.119.0 sub/avm-eac_rails_base0/spec/lib/avm/eac_rails_base0/apache_path_spec.rb
avm-tools-0.118.0 sub/avm-eac_rails_base0/spec/lib/avm/eac_rails_base0/apache_path_spec.rb
avm-tools-0.117.3 sub/avm-eac_rails_base0/spec/lib/avm/eac_rails_base0/apache_path_spec.rb
avm-tools-0.117.2 sub/avm-eac_rails_base0/spec/lib/avm/eac_rails_base0/apache_path_spec.rb
avm-tools-0.117.1 sub/avm-eac_rails_base0/spec/lib/avm/eac_rails_base0/apache_path_spec.rb
avm-tools-0.117.0 sub/avm-eac_rails_base0/spec/lib/avm/eac_rails_base0/apache_path_spec.rb
avm-tools-0.116.2 sub/avm-eac_rails_base0/spec/lib/avm/eac_rails_base0/apache_path_spec.rb
avm-tools-0.116.1 sub/avm-eac_rails_base0/spec/lib/avm/eac_rails_base0/apache_path_spec.rb
avm-tools-0.116.0 sub/avm-eac_rails_base0/spec/lib/avm/eac_rails_base0/apache_path_spec.rb
avm-tools-0.115.0 sub/avm-eac_rails_base0/spec/lib/avm/eac_rails_base0/apache_path_spec.rb
avm-tools-0.114.2 sub/avm-eac_rails_base0/spec/lib/avm/eac_rails_base0/apache_path_spec.rb
avm-tools-0.114.1 sub/avm-eac_rails_base0/spec/lib/avm/eac_rails_base0/apache_path_spec.rb