Sha256: 4d2d024cd53ca1ad2085f4b9f0fe3251320b5102f41696c74e24d2541d51b539

Contents?: true

Size: 585 Bytes

Versions: 9

Compression:

Stored size: 585 Bytes

Contents

# frozen_string_literal: true

require 'spec_helper'

describe Sinclair::ConfigClass do
  describe 'yard' do
    describe '.add_configs' do
      it 'Adding configurations to config class' do
        config = AppConfig.new

        expect(config.secret).to be_nil
        expect(config.app_name).to eq('MyApp')

        config_builder = Sinclair::ConfigBuilder.new(config)

        config_builder.secret '123abc'
        config_builder.app_name 'MySuperApp'

        expect(config.secret).to eq('123abc')
        expect(config.app_name).to eq('MySuperApp')
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
sinclair-2.1.1 spec/integration/yard/sinclair/config_class_spec.rb
sinclair-2.1.0 spec/integration/yard/sinclair/config_class_spec.rb
sinclair-2.0.1 spec/integration/yard/sinclair/config_class_spec.rb
sinclair-2.0.0 spec/integration/yard/sinclair/config_class_spec.rb
sinclair-1.16.3 spec/integration/yard/sinclair/config_class_spec.rb
sinclair-1.16.2 spec/integration/yard/sinclair/config_class_spec.rb
sinclair-1.16.1 spec/integration/yard/sinclair/config_class_spec.rb
sinclair-1.16.0 spec/integration/yard/sinclair/config_class_spec.rb
sinclair-1.15.0 spec/integration/yard/sinclair/config_class_spec.rb