Sha256: 6465d5605aae655af99e42a096c43a8a3f98871bd584c9efb72c4225e70656b6

Contents?: true

Size: 526 Bytes

Versions: 5

Compression:

Stored size: 526 Bytes

Contents

require 'spec_helper'

describe Quandl::Config do
  describe '.initialize' do
    it 'generates a Config class, evaluating ERB' do
      configuration = Quandl::Config.new('fake')

      expect(configuration['notifiers']['ci']['channel']).to eq('#development')
    end
  end

  describe '#configurable_attributes' do
    it 'provides a list of configurable attributes' do
      configuration = Quandl::Config.new('fake')

      expect(configuration.configurable_attributes).to eq([:webhook_url, :notifiers])
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
quandl-config-0.1.0 spec/quandl/quandl-config_spec.rb
quandl-config-0.0.4 spec/quandl/quandl-config_spec.rb
quandl-config-0.0.3 spec/quandl/quandl-config_spec.rb
quandl-config-0.0.2 spec/quandl/quandl-config_spec.rb
quandl-config-0.0.1 spec/quandl/quandl-config_spec.rb