Sha256: 1685d7f2917985528a70dfa74d3327b721546d1f1d76d4877161a591da7d4128

Contents?: true

Size: 588 Bytes

Versions: 87

Compression:

Stored size: 588 Bytes

Contents

# frozen_string_literal: true

require 'eac_ruby_utils/patches/object/template'

RSpec.describe ::Object do
  class MyStubWithTemplate
  end

  let(:instance) { ::MyStubWithTemplate.new }
  let(:templates_path) { ::File.join(__dir__, 'template_spec_files', 'path') }

  before do
    ::EacRubyUtils::Templates::Searcher.default.included_paths.add(templates_path)
  end

  after do
    ::EacRubyUtils::Templates::Searcher.default.included_paths.delete(templates_path)
  end

  describe '#template' do
    it { expect(instance.template).to be_a(::EacRubyUtils::Templates::File) }
  end
end

Version data entries

87 entries across 87 versions & 2 rubygems

Version Path
avm-tools-0.75.1 vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/object/template_spec.rb
avm-tools-0.75.0 vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/object/template_spec.rb
avm-tools-0.74.1 vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/object/template_spec.rb
avm-tools-0.74.0 vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/object/template_spec.rb
avm-tools-0.73.0 vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/object/template_spec.rb
avm-tools-0.72.0 vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/object/template_spec.rb
avm-tools-0.71.0 vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/object/template_spec.rb
avm-tools-0.70.2 vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/object/template_spec.rb
ehbrs-tools-0.15.0 vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/object/template_spec.rb
ehbrs-tools-0.14.1 vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/object/template_spec.rb
avm-tools-0.70.1 vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/object/template_spec.rb
avm-tools-0.70.0 vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/object/template_spec.rb
avm-tools-0.69.3 vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/object/template_spec.rb
ehbrs-tools-0.14.0 vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/object/template_spec.rb
avm-tools-0.69.2 vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/object/template_spec.rb
avm-tools-0.69.1 vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/object/template_spec.rb
avm-tools-0.69.0 vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/object/template_spec.rb
ehbrs-tools-0.13.1 vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/object/template_spec.rb
avm-tools-0.68.0 vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/object/template_spec.rb
avm-tools-0.67.0 vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/object/template_spec.rb