Sha256: 2420cd1c77a42095c9a99fa08c5cb56213d377d572bc04ca089aa35806b01216
Contents?: true
Size: 891 Bytes
Versions: 25
Compression:
Stored size: 891 Bytes
Contents
# frozen_string_literal: true require 'spec_helper' describe Sinclair::ConfigClass do describe 'yard' do describe '.add_configs' do subject(:config) { AppConfig.new } it 'has a secret configuration method' do expect(config.secret).to be_nil end it 'has a app_name configuration method' do expect(config.app_name).to eq('MyApp') end context 'when configured' do let(:config_builder) do Sinclair::ConfigBuilder.new(config) end before do config_builder.secret '123abc' config_builder.app_name 'MySuperApp' end it 'has a secret configuration method' do expect(config.secret).to eq('123abc') end it 'has a app_name configuration method' do expect(config.app_name).to eq('MySuperApp') end end end end end
Version data entries
25 entries across 25 versions & 1 rubygems