Sha256: 01b9d37c020113301fa8a47871240d84b1458d05663568bf093c3ebaa14178e6
Contents?: true
Size: 910 Bytes
Versions: 2
Compression:
Stored size: 910 Bytes
Contents
# frozen_string_literal: true require 'eac_fs/comparator' require 'eac_templates/modules/base' require 'eac_templates/errors/not_found' require 'eac_templates/sources/set' RSpec.describe EacTemplates::Modules::Base, '#apply' do include_context 'spec_paths', __FILE__ include_context 'with modules resouces' %w[a_module prepended_module super_class sub_class].each do |module_variable| context "when module is #{module_variable.classify}" do let(:expected_path) { fixtures_directory.join(module_variable) } let(:instance) { described_class.new(send(module_variable), source_set: source_set) } let(:actual_path) { temp_dir } let(:comparator) { EacFs::Comparator.new } before do instance.apply(variables_source, actual_path) end it do expect(comparator.build(actual_path)).to eq(comparator.build(expected_path)) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
eac_tools-0.93.0 | sub/eac_templates/spec/lib/eac_templates/modules/base/apply_spec.rb |
eac_tools-0.91.0 | sub/eac_templates/spec/lib/eac_templates/modules/base/apply_spec.rb |