Sha256: a8d6734825e4c4e8d65004feca87f624f707cb250185eca3e6bd89e83191534a
Contents?: true
Size: 587 Bytes
Versions: 8
Compression:
Stored size: 587 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 context '#template' do it { expect(instance.template).to be_a(::EacRubyUtils::Templates::File) } end end
Version data entries
8 entries across 8 versions & 1 rubygems