Sha256: 902b5a348f0f8340964479c6a2805f4a8c49e96a698b67583add45d5182346fe

Contents?: true

Size: 442 Bytes

Versions: 113

Compression:

Stored size: 442 Bytes

Contents

# frozen_string_literal: true

require 'eac_ruby_utils/patches/class/abstract'

RSpec.describe ::Class do
  let(:abstract_class) do
    described_class.new do
      enable_abstract_methods
    end
  end

  let(:concrect_class) do
    described_class.new(abstract_class)
  end

  describe '#abstract' do
    it do
      expect(abstract_class).to be_abstract
    end

    it do
      expect(concrect_class).not_to be_abstract
    end
  end
end

Version data entries

113 entries across 113 versions & 3 rubygems

Version Path
eac_tools-0.27.0 sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/class/abstract_spec.rb
eac_tools-0.26.0 sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/class/abstract_spec.rb
eac_tools-0.25.1 sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/class/abstract_spec.rb
eac_tools-0.25.0 sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/class/abstract_spec.rb
eac_tools-0.24.1 sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/class/abstract_spec.rb
eac_tools-0.24.0 sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/class/abstract_spec.rb
eac_tools-0.23.0 sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/class/abstract_spec.rb
eac_tools-0.22.0 sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/class/abstract_spec.rb
eac_tools-0.21.0 sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/class/abstract_spec.rb
eac_tools-0.20.0 sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/class/abstract_spec.rb
eac_tools-0.19.0 sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/class/abstract_spec.rb
eac_tools-0.18.0 sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/class/abstract_spec.rb
eac_tools-0.17.0 sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/class/abstract_spec.rb
eac_tools-0.16.1 sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/class/abstract_spec.rb
eac_tools-0.16.0 sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/class/abstract_spec.rb
eac_tools-0.15.0 sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/class/abstract_spec.rb
eac_tools-0.14.0 sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/class/abstract_spec.rb
eac_tools-0.13.0 sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/class/abstract_spec.rb
eac_tools-0.12.0 sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/class/abstract_spec.rb
eac_tools-0.11.1 sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/class/abstract_spec.rb