Sha256: 85027a7967378f4cb634bfd0ff77229fd3aa6ac81a8790c64e038a3757b6053b

Contents?: true

Size: 599 Bytes

Versions: 8

Compression:

Stored size: 599 Bytes

Contents

require 'spec_helper'

module Asyncapi
  describe Server do

    describe ".expiry_threshold=" do
      let!(:original_expiry_threshold) { described_class.expiry_threshold }
      after { described_class.expiry_threshold = original_expiry_threshold }
      it "sets the threshold for expiring old jobs" do
        described_class.expiry_threshold = 2.days
        expect(described_class.expiry_threshold).to eq 2.days
      end
    end

    describe ".expiry_threshold" do
      it "defaults to 10 days" do
        expect(described_class.expiry_threshold).to eq 10.days
      end
    end

  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
asyncapi-server-1.3.2 spec/server_spec.rb
asyncapi-server-1.3.0 spec/server_spec.rb
asyncapi-server-1.2.0 spec/server_spec.rb
asyncapi-server-1.1.3 spec/server_spec.rb
asyncapi-server-1.1.2 spec/server_spec.rb
asyncapi-server-1.1.1 spec/server_spec.rb
asyncapi-server-1.1.0 spec/server_spec.rb
asyncapi-server-1.0.0 spec/server_spec.rb