Sha256: 83890181270a1786c7a71a744f8cccbcccf01a2de6b937b9dfd08e5b1bf2618f

Contents?: true

Size: 614 Bytes

Versions: 2

Compression:

Stored size: 614 Bytes

Contents

require 'spec_helper'
require 'rexml/document'

describe Glitter::Server do
  describe "#new" do
    context "No timeout flag is passed to the server constructor" do
      let(:server) { Glitter::Server.new }

      it "defaults to the default timeout" do
        expect(server.timeout).to eq Glitter::Server::DEFAULT_S3_TIMEOUT
      end
    end

    context "A timeout flag is passed to the server constructor" do
      let(:server) { Glitter::Server.new(timeout: 10) }
      
      it "will have a timeout value of the passed timeout flag" do
        expect(server.timeout).to eq 10
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
glitter-2.2.1 spec/lib/server_spec.rb
glitter-2.2.0 spec/lib/server_spec.rb