Sha256: c2b0ebe7d5f5d87be82058a47ef95b4727ff2a4ee18b690ac25141d767bfc42c

Contents?: true

Size: 444 Bytes

Versions: 43

Compression:

Stored size: 444 Bytes

Contents

# frozen_string_literal: true

require 'eac_ruby_utils/method_class'
require 'eac_ruby_utils/patches/module/method_class'

RSpec.describe ::Class do
  let(:stub_method_class) do
    described_class.new do
      def self.name
        'StubMethodClass'
      end

      enable_method_class
    end
  end

  describe '#enable_simple_cache' do
    it { expect(stub_method_class.included_modules).to include(::EacRubyUtils::MethodClass) }
  end
end

Version data entries

43 entries across 43 versions & 2 rubygems

Version Path
eac_tools-0.31.0 sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/module/method_class_spec.rb
eac_tools-0.30.0 sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/module/method_class_spec.rb
eac_tools-0.29.0 sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/module/method_class_spec.rb
eac_tools-0.28.0 sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/module/method_class_spec.rb
eac_tools-0.27.2 sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/module/method_class_spec.rb
eac_tools-0.27.1 sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/module/method_class_spec.rb
eac_tools-0.27.0 sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/module/method_class_spec.rb
eac_tools-0.26.0 sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/module/method_class_spec.rb
eac_tools-0.25.1 sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/module/method_class_spec.rb
eac_tools-0.25.0 sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/module/method_class_spec.rb
eac_tools-0.24.1 sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/module/method_class_spec.rb
eac_tools-0.24.0 sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/module/method_class_spec.rb
eac_tools-0.23.0 sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/module/method_class_spec.rb
eac_tools-0.22.0 sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/module/method_class_spec.rb
eac_tools-0.21.0 sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/module/method_class_spec.rb
eac_tools-0.20.0 sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/module/method_class_spec.rb
eac_tools-0.19.0 sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/module/method_class_spec.rb
eac_tools-0.18.0 sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/module/method_class_spec.rb
eac_tools-0.17.0 sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/module/method_class_spec.rb
eac_tools-0.16.1 sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/module/method_class_spec.rb