Sha256: ecc5f6e80b2d6121fcf0eb95a87bd89b93bb1e6768fb0112e001561db33277c0
Contents?: true
Size: 830 Bytes
Versions: 48
Compression:
Stored size: 830 Bytes
Contents
# frozen_string_literal: true require 'avm/eac_rails_base0/apache_path' require 'avm/eac_rails_base0/instances/base' RSpec.describe ::Avm::EacRailsBase0::ApachePath do describe '#no_ssl_site_content' do let(:instance) { ::Avm::EacRailsBase0::Instances::Base.by_id('stub-app_0') } let(:apache_path) { described_class.new(instance) } let(:fixtures_dir) { ::Pathname.new('apache_path_spec_files').expand_path(__dir__) } let(:expect_file) { fixtures_dir.join('stub-app_0_apache_path.conf') } let(:expected_content) { expect_file.read } before do instance.entry(::Avm::Instances::EntryKeys::INSTALL_PATH).write('/path/to/stub-app_0') instance.entry('web.url').write('http://stubapp.net/stub-app_0') end it do expect(apache_path.content).to eq(expected_content) end end end
Version data entries
48 entries across 48 versions & 1 rubygems