Sha256: d9e23ae6b54da5652304d80af544ce39ae60d5e5298ac31cca03bb94b58b29f3
Contents?: true
Size: 725 Bytes
Versions: 25
Compression:
Stored size: 725 Bytes
Contents
# frozen_string_literal: true require 'eac_templates/interface_methods' require 'eac_templates/patches/object/template' RSpec.describe ::Object do class MyStubWithTemplate # rubocop:disable RSpec/LeakyConstantDeclaration end let(:instance) { ::MyStubWithTemplate.new } let(:templates_path) { ::File.join(__dir__, 'template_spec_files', 'path') } before do ::EacTemplates::Sources::Set.default.included_paths.add(templates_path) end after do ::EacTemplates::Sources::Set.default.included_paths.delete(templates_path) end describe '#template' do ::EacTemplates::InterfaceMethods::FILE.each do |method_name| it { expect(instance.template).to respond_to(method_name) } end end end
Version data entries
25 entries across 25 versions & 1 rubygems