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