Sha256: 60c8b63d3c248a90577d7ea99a491cb32ae92b73e42aa93aa4423f6334e9754a

Contents?: true

Size: 451 Bytes

Versions: 20

Compression:

Stored size: 451 Bytes

Contents

# frozen_string_literal: true

require 'spec_helper'

describe Sinclair::ConfigClass do
  subject(:klass) do
    Class.new { extend Sinclair::ConfigClass }
  end

  let(:child_klass) { Class.new(klass) }

  let(:config)      { klass.new }

  describe '.config_attributes' do
    it_behaves_like 'a config class with .config_attributes method'
  end

  describe '.add_configs' do
    it_behaves_like 'a config class with .add_configs method'
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
sinclair-2.1.1 spec/lib/sinclair/config_class_spec.rb
sinclair-2.1.0 spec/lib/sinclair/config_class_spec.rb
sinclair-2.0.1 spec/lib/sinclair/config_class_spec.rb
sinclair-2.0.0 spec/lib/sinclair/config_class_spec.rb
sinclair-1.16.3 spec/lib/sinclair/config_class_spec.rb
sinclair-1.16.2 spec/lib/sinclair/config_class_spec.rb
sinclair-1.16.1 spec/lib/sinclair/config_class_spec.rb
sinclair-1.16.0 spec/lib/sinclair/config_class_spec.rb
sinclair-1.15.0 spec/lib/sinclair/config_class_spec.rb
sinclair-1.14.2 spec/lib/sinclair/config_class_spec.rb
sinclair-1.14.1 spec/lib/sinclair/config_class_spec.rb
sinclair-1.14.0 spec/lib/sinclair/config_class_spec.rb
sinclair-1.13.0 spec/lib/sinclair/config_class_spec.rb
sinclair-1.12.1 spec/lib/sinclair/config_class_spec.rb
sinclair-1.12.0 spec/lib/sinclair/config_class_spec.rb
sinclair-1.11.0 spec/lib/sinclair/config_class_spec.rb
sinclair-1.10.0 spec/lib/sinclair/config_class_spec.rb
sinclair-1.9.0 spec/lib/sinclair/config_class_spec.rb
sinclair-1.8.0 spec/lib/sinclair/config_class_spec.rb
sinclair-1.7.0 spec/lib/sinclair/config_class_spec.rb