Sha256: e271638b6ede3d9a37c0ad149a97d6dd6d5023dc12d41adbb55c9f1aa2db481d

Contents?: true

Size: 764 Bytes

Versions: 15

Compression:

Stored size: 764 Bytes

Contents

# frozen_string_literal: true

require 'avm/eac_wordpress_base0/apache_host'
require 'avm/eac_wordpress_base0/instance'

RSpec.describe ::Avm::EacWordpressBase0::ApacheHost do
  describe '#no_ssl_site_content' do
    let(:instance) { ::Avm::EacWordpressBase0::Instance.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('fs_path').write('/path/to/stub-app_0')
      instance.entry('web.url').write('http://stubapp.net')
      instance.entry('system.username').write('myuser')
    end

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

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
eac_tools-0.15.0 sub/avm-tools/spec/lib/avm/eac_wordpress_base0/apache_host_spec.rb
eac_tools-0.14.0 sub/avm-tools/spec/lib/avm/eac_wordpress_base0/apache_host_spec.rb
eac_tools-0.13.0 sub/avm-tools/spec/lib/avm/eac_wordpress_base0/apache_host_spec.rb
eac_tools-0.12.0 sub/avm-tools/spec/lib/avm/eac_wordpress_base0/apache_host_spec.rb
eac_tools-0.11.1 sub/avm-tools/spec/lib/avm/eac_wordpress_base0/apache_host_spec.rb
eac_tools-0.11.0 sub/avm-tools/spec/lib/avm/eac_wordpress_base0/apache_host_spec.rb
eac_tools-0.10.0 sub/avm-tools/spec/lib/avm/eac_wordpress_base0/apache_host_spec.rb
eac_tools-0.9.0 sub/avm-tools/spec/lib/avm/eac_wordpress_base0/apache_host_spec.rb
eac_tools-0.8.0 sub/avm-tools/spec/lib/avm/eac_wordpress_base0/apache_host_spec.rb
eac_tools-0.7.0 sub/avm-tools/spec/lib/avm/eac_wordpress_base0/apache_host_spec.rb
eac_tools-0.6.0 sub/avm-tools/spec/lib/avm/eac_wordpress_base0/apache_host_spec.rb
eac_tools-0.5.0 sub/avm-tools/spec/lib/avm/eac_wordpress_base0/apache_host_spec.rb
eac_tools-0.4.0 sub/avm-tools/spec/lib/avm/eac_wordpress_base0/apache_host_spec.rb
eac_tools-0.3.0 sub/avm-tools/spec/lib/avm/eac_wordpress_base0/apache_host_spec.rb
eac_tools-0.2.2 sub/avm-tools/spec/lib/avm/eac_wordpress_base0/apache_host_spec.rb