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.16.0 sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/module/method_class_spec.rb
eac_tools-0.15.0 sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/module/method_class_spec.rb
eac_tools-0.14.0 sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/module/method_class_spec.rb
eac_tools-0.13.0 sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/module/method_class_spec.rb
eac_tools-0.12.0 sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/module/method_class_spec.rb
eac_tools-0.11.1 sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/module/method_class_spec.rb
eac_tools-0.11.0 sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/module/method_class_spec.rb
eac_tools-0.10.0 sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/module/method_class_spec.rb
eac_tools-0.9.0 sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/module/method_class_spec.rb
eac_tools-0.8.0 sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/module/method_class_spec.rb
eac_tools-0.7.0 sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/module/method_class_spec.rb
eac_tools-0.6.0 sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/module/method_class_spec.rb
eac_tools-0.5.0 sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/module/method_class_spec.rb
eac_tools-0.4.0 sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/module/method_class_spec.rb
avm-tools-0.120.2 sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/module/method_class_spec.rb
avm-tools-0.120.1 sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/module/method_class_spec.rb
avm-tools-0.120.0 sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/module/method_class_spec.rb
avm-tools-0.119.0 sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/module/method_class_spec.rb
avm-tools-0.118.0 sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/module/method_class_spec.rb
avm-tools-0.117.3 sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/module/method_class_spec.rb