Sha256: df8bf25a2656e32d89ea94e843b88a434890fd203c7de64d6ab85f4e153748eb
Contents?: true
Size: 790 Bytes
Versions: 7
Compression:
Stored size: 790 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
7 entries across 7 versions & 1 rubygems