Sha256: 35cdeb410e9e3c4bd105d5a98469551e84418815daea0e10edb54e85d27f6a1f
Contents?: true
Size: 955 Bytes
Versions: 4
Compression:
Stored size: 955 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) expect(subject.locking_duration).to eq(2) expect(subject.polling_interval).to eq(0.3) end describe "#configure" do it "allows setting options through a block" do Gush.configure do |config| config.redis_url = "redis://localhost" config.concurrency = 25 config.locking_duration = 5 config.polling_interval = 0.5 end expect(Gush.configuration.redis_url).to eq("redis://localhost") expect(Gush.configuration.concurrency).to eq(25) expect(Gush.configuration.locking_duration).to eq(5) expect(Gush.configuration.polling_interval).to eq(0.5) end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
gush-4.1.0 | spec/gush/configuration_spec.rb |
gush-4.0.0 | spec/gush/configuration_spec.rb |
gush-3.0.0 | spec/gush/configuration_spec.rb |
gush-2.1.0 | spec/gush/configuration_spec.rb |