Sha256: d4f2dd323e33d0694588fa23ff20a5d563a5aaa6d3f0b256355bb5357f175eeb

Contents?: true

Size: 586 Bytes

Versions: 2

Compression:

Stored size: 586 Bytes

Contents

require 'spec_helper'

RSpec.describe 'Settings' do
  context '#settings' do
    subject { settings }
    context 'when method called two times' do
      let(:other_settings) { settings }
      it { is_expected.to equal(other_settings) }
      it { expect(other_settings).to be_a_kind_of(SexySettings::Base) }
    end
  end
  context 'SexySettings configuration' do
    subject { SexySettings.configuration }
    it { expect(subject.path_to_custom_settings).to include('config/custom.yml') }
    it { expect(subject.path_to_default_settings).to include('config/default.yml') }
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
howitzer-1.1.1 spec/unit/lib/settings_spec.rb
howitzer-1.1.0 spec/unit/lib/settings_spec.rb