Sha256: 80cb58a70f634cd55d4245ed9213c6e5b3589f37ffb1180413d67c04a1e8beab

Contents?: true

Size: 915 Bytes

Versions: 11

Compression:

Stored size: 915 Bytes

Contents

# frozen_string_literal: true

require 'avm/instances/entry_keys'
require 'avm/eac_wordpress_base0/instances/apache_host'
require 'avm/eac_wordpress_base0/instances/base'

RSpec.describe ::Avm::EacWordpressBase0::Instances::ApacheHost do
  describe '#no_ssl_site_content' do
    let(:instance) { ::Avm::EacWordpressBase0::Instances::Base.by_id('stub-app_0') }
    let(:apache_host) { described_class.new(instance) }
    let(:expected_content) do
      ::File.read(::File.join(__dir__, 'apache_host_spec_no_ssl_content.conf'))
    end

    before do
      instance.entry(::Avm::Instances::EntryKeys::FS_PATH).write('/path/to/stub-app_0')
      instance.entry(::Avm::Instances::EntryKeys::WEB_URL).write('http://stubapp.net')
      instance.entry(::Avm::Instances::EntryKeys::INSTALL_USERNAME).write('myuser')
    end

    it do
      expect(apache_host.no_ssl_site_content).to eq(expected_content)
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
eac_tools-0.26.0 sub/avm-eac_wordpress_base0/spec/lib/avm/eac_wordpress_base0/instances/apache_host_spec.rb
eac_tools-0.25.1 sub/avm-eac_wordpress_base0/spec/lib/avm/eac_wordpress_base0/instances/apache_host_spec.rb
eac_tools-0.25.0 sub/avm-eac_wordpress_base0/spec/lib/avm/eac_wordpress_base0/instances/apache_host_spec.rb
eac_tools-0.24.1 sub/avm-eac_wordpress_base0/spec/lib/avm/eac_wordpress_base0/instances/apache_host_spec.rb
eac_tools-0.24.0 sub/avm-eac_wordpress_base0/spec/lib/avm/eac_wordpress_base0/instances/apache_host_spec.rb
eac_tools-0.23.0 sub/avm-eac_wordpress_base0/spec/lib/avm/eac_wordpress_base0/instances/apache_host_spec.rb
eac_tools-0.22.0 sub/avm-eac_wordpress_base0/spec/lib/avm/eac_wordpress_base0/instances/apache_host_spec.rb
eac_tools-0.21.0 sub/avm-eac_wordpress_base0/spec/lib/avm/eac_wordpress_base0/instances/apache_host_spec.rb
eac_tools-0.20.0 sub/avm-eac_wordpress_base0/spec/lib/avm/eac_wordpress_base0/instances/apache_host_spec.rb
eac_tools-0.19.0 sub/avm-eac_wordpress_base0/spec/lib/avm/eac_wordpress_base0/instances/apache_host_spec.rb
eac_tools-0.18.0 sub/avm-eac_wordpress_base0/spec/lib/avm/eac_wordpress_base0/instances/apache_host_spec.rb