Sha256: 22bf30596abf7b010d21d728e9d14ca3f0caaab63322cd80970575dd8bc0bacd

Contents?: true

Size: 796 Bytes

Versions: 37

Compression:

Stored size: 796 Bytes

Contents

# frozen_string_literal: true

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

RSpec.describe ::Avm::EacRailsBase0::Instances::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('install.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

37 entries across 37 versions & 1 rubygems

Version Path
eac_tools-0.79.0 sub/avm-eac_rails_base0/spec/lib/avm/eac_rails_base0/instances/apache_host_spec.rb
eac_tools-0.78.0 sub/avm-eac_rails_base0/spec/lib/avm/eac_rails_base0/instances/apache_host_spec.rb
eac_tools-0.77.1 sub/avm-eac_rails_base0/spec/lib/avm/eac_rails_base0/instances/apache_host_spec.rb
eac_tools-0.77.0 sub/avm-eac_rails_base0/spec/lib/avm/eac_rails_base0/instances/apache_host_spec.rb
eac_tools-0.76.1 sub/avm-eac_rails_base0/spec/lib/avm/eac_rails_base0/instances/apache_host_spec.rb
eac_tools-0.76.0 sub/avm-eac_rails_base0/spec/lib/avm/eac_rails_base0/instances/apache_host_spec.rb
eac_tools-0.75.2 sub/avm-eac_rails_base0/spec/lib/avm/eac_rails_base0/instances/apache_host_spec.rb
eac_tools-0.75.1 sub/avm-eac_rails_base0/spec/lib/avm/eac_rails_base0/instances/apache_host_spec.rb
eac_tools-0.75.0 sub/avm-eac_rails_base0/spec/lib/avm/eac_rails_base0/instances/apache_host_spec.rb
eac_tools-0.74.1 sub/avm-eac_rails_base0/spec/lib/avm/eac_rails_base0/instances/apache_host_spec.rb
eac_tools-0.74.0 sub/avm-eac_rails_base0/spec/lib/avm/eac_rails_base0/instances/apache_host_spec.rb
eac_tools-0.73.0 sub/avm-eac_rails_base0/spec/lib/avm/eac_rails_base0/instances/apache_host_spec.rb
eac_tools-0.72.0 sub/avm-eac_rails_base0/spec/lib/avm/eac_rails_base0/instances/apache_host_spec.rb
eac_tools-0.70.1 sub/avm-eac_rails_base0/spec/lib/avm/eac_rails_base0/instances/apache_host_spec.rb
eac_tools-0.70.0 sub/avm-eac_rails_base0/spec/lib/avm/eac_rails_base0/instances/apache_host_spec.rb
eac_tools-0.69.1 sub/avm-eac_rails_base0/spec/lib/avm/eac_rails_base0/instances/apache_host_spec.rb
eac_tools-0.69.0 sub/avm-eac_rails_base0/spec/lib/avm/eac_rails_base0/instances/apache_host_spec.rb
eac_tools-0.68.0 sub/avm-eac_rails_base0/spec/lib/avm/eac_rails_base0/instances/apache_host_spec.rb
eac_tools-0.67.1 sub/avm-eac_rails_base0/spec/lib/avm/eac_rails_base0/instances/apache_host_spec.rb
eac_tools-0.67.0 sub/avm-eac_rails_base0/spec/lib/avm/eac_rails_base0/instances/apache_host_spec.rb