Sha256: ed68b2110b15e657dbb6f3130cf2ecb3743e93f4b3688a7395ff1ff32ef8864d

Contents?: true

Size: 770 Bytes

Versions: 6

Compression:

Stored size: 770 Bytes

Contents

# frozen_string_literal: true

require 'avm/eac_rails_base0/apache_host'
require 'avm/eac_rails_base0/instances/base'

RSpec.describe ::Avm::EacRailsBase0::ApacheHost do
  describe '#no_ssl_site_content' do
    let(:instance) { ::Avm::EacRailsBase0::Instances::Base.by_id('stub-app_0') }
    let(:apache_host) { described_class.new(instance) }
    let(:fixtures_dir) { ::Pathname.new('apache_host_spec_files').expand_path(__dir__) }
    let(:expected_content) { fixtures_dir.join('apache_host_spec_no_ssl_content.conf').read }

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

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
eac_tools-0.26.0 sub/avm-eac_rails_base0/spec/lib/avm/eac_rails_base0/apache_host_spec.rb
eac_tools-0.25.1 sub/avm-eac_rails_base0/spec/lib/avm/eac_rails_base0/apache_host_spec.rb
eac_tools-0.25.0 sub/avm-eac_rails_base0/spec/lib/avm/eac_rails_base0/apache_host_spec.rb
eac_tools-0.24.1 sub/avm-eac_rails_base0/spec/lib/avm/eac_rails_base0/apache_host_spec.rb
eac_tools-0.24.0 sub/avm-eac_rails_base0/spec/lib/avm/eac_rails_base0/apache_host_spec.rb
eac_tools-0.23.0 sub/avm-eac_rails_base0/spec/lib/avm/eac_rails_base0/apache_host_spec.rb