Sha256: 0827662dae3a39203e881cc72c26d3b14b2f294a7a97aef7f776a7211e424f94
Contents?: true
Size: 843 Bytes
Versions: 7
Compression:
Stored size: 843 Bytes
Contents
# frozen_string_literal: true require 'avm/eac_rails_base0/instances/apache_path' require 'avm/eac_rails_base0/instances/base' RSpec.describe Avm::EacRailsBase0::Instances::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
7 entries across 7 versions & 1 rubygems