Sha256: 1f1aa849e3c26e686b193c5a99c36220cc75ef11059c1de0bcb1596ae01b83c3

Contents?: true

Size: 667 Bytes

Versions: 6

Compression:

Stored size: 667 Bytes

Contents

require 'spec_helper'

describe Gush::Configuration do

  it "has defaults set" do
    subject.gushfile = GUSHFILE
    expect(subject.redis_url).to eq("redis://localhost:6379")
    expect(subject.concurrency).to eq(5)
    expect(subject.namespace).to eq('gush')
    expect(subject.gushfile).to eq(GUSHFILE.realpath)
  end

  describe "#configure" do
    it "allows setting options through a block" do
      Gush.configure do |config|
        config.redis_url = "redis://localhost"
        config.concurrency = 25
      end

      expect(Gush.configuration.redis_url).to eq("redis://localhost")
      expect(Gush.configuration.concurrency).to eq(25)
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
gush-2.0.2 spec/gush/configuration_spec.rb
gush-2.0.1 spec/gush/configuration_spec.rb
gush-2.0.0 spec/gush/configuration_spec.rb
gush-1.1.1 spec/gush/configuration_spec.rb
gush-1.1.0 spec/gush/configuration_spec.rb
gush-1.0.0 spec/gush/configuration_spec.rb