Sha256: d983be98782ce2d689d460f193541c4fbd238e4639f262e8b3f9a687ceee2066

Contents?: true

Size: 440 Bytes

Versions: 10

Compression:

Stored size: 440 Bytes

Contents

require 'spec_helper'

describe Elasticrawl::Config do
  describe '#load_config' do
    subject { Elasticrawl::Config.new }

    it 'should return a hash of config data' do
      config_data = subject.load_config('jobs')
      expect(config_data).to be_a Hash
    end

    it 'should load yaml config file' do
      config_data = subject.load_config('jobs')
      expect(config_data['s3_bucket_name']).to eq 'elasticrawl'
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
elasticrawl-1.1.8 spec/unit/config_spec.rb
elasticrawl-1.1.7 spec/unit/config_spec.rb
elasticrawl-1.1.6 spec/unit/config_spec.rb
elasticrawl-1.1.5 spec/unit/config_spec.rb
elasticrawl-1.1.4 spec/unit/config_spec.rb
elasticrawl-1.1.3 spec/unit/config_spec.rb
elasticrawl-1.1.2 spec/unit/config_spec.rb
elasticrawl-1.1.1 spec/unit/config_spec.rb
elasticrawl-1.1.0 spec/unit/config_spec.rb
elasticrawl-1.0.0 spec/unit/config_spec.rb