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

Version Path
eac_tools-0.76.0 sub/eac_templates/spec/lib/eac_templates/patches/object/template_spec.rb
eac_tools-0.75.2 sub/eac_templates/spec/lib/eac_templates/patches/object/template_spec.rb
eac_tools-0.75.1 sub/eac_templates/spec/lib/eac_templates/patches/object/template_spec.rb
eac_tools-0.75.0 sub/eac_templates/spec/lib/eac_templates/patches/object/template_spec.rb
eac_tools-0.74.1 sub/eac_templates/spec/lib/eac_templates/patches/object/template_spec.rb
eac_tools-0.74.0 sub/eac_templates/spec/lib/eac_templates/patches/object/template_spec.rb
eac_tools-0.73.0 sub/eac_templates/spec/lib/eac_templates/patches/object/template_spec.rb
eac_tools-0.72.0 sub/eac_templates/spec/lib/eac_templates/patches/object/template_spec.rb
eac_tools-0.70.1 sub/eac_templates/spec/lib/eac_templates/patches/object/template_spec.rb
eac_tools-0.70.0 sub/eac_templates/spec/lib/eac_templates/patches/object/template_spec.rb
eac_tools-0.69.1 sub/eac_templates/spec/lib/eac_templates/patches/object/template_spec.rb
eac_tools-0.69.0 sub/eac_templates/spec/lib/eac_templates/patches/object/template_spec.rb
eac_tools-0.68.0 sub/eac_templates/spec/lib/eac_templates/patches/object/template_spec.rb
eac_tools-0.67.1 sub/eac_templates/spec/lib/eac_templates/patches/object/template_spec.rb
eac_tools-0.67.0 sub/eac_templates/spec/lib/eac_templates/patches/object/template_spec.rb
eac_tools-0.66.0 sub/eac_templates/spec/lib/eac_templates/patches/object/template_spec.rb
eac_tools-0.65.1 sub/eac_templates/spec/lib/eac_templates/patches/object/template_spec.rb
eac_tools-0.65.0 sub/eac_templates/spec/lib/eac_templates/patches/object/template_spec.rb
eac_tools-0.64.0 sub/eac_templates/spec/lib/eac_templates/patches/object/template_spec.rb
eac_tools-0.63.0 sub/eac_templates/spec/lib/eac_templates/patches/object/template_spec.rb