Sha256: e14d47b1fb19d1e5067b0e32f4e253e74ccc96688840a16048f6deaa9d49303c

Contents?: true

Size: 458 Bytes

Versions: 1

Compression:

Stored size: 458 Bytes

Contents

require 'spec_helper'

module Calagator
  describe 'Calagator.title' do
    it 'should use default value' do
      expect(Calagator.title).to eq('Calagator')
    end

    it 'should be configurable' do
      Calagator.setup { |config| config.title = 'Calagator Test' }
      expect(Calagator.title).to eq('Calagator Test')
    end

    around do |example|
      original = Calagator.title
      example.run
      Calagator.title = original
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
calagator-1.1.0 spec/lib/calagator/settings_spec.rb