Sha256: 5438ff0280941a77d0ea7872c6e21611b22fc8a1f103a76786f732d2de7c5f23

Contents?: true

Size: 555 Bytes

Versions: 6

Compression:

Stored size: 555 Bytes

Contents

require 'spec_helper'
require 'rack/test'

describe Firehose::Rack::Consumer, :type => :request do
  include Rack::Test::Methods
  let(:app) { Firehose::Rack::Consumer.new }
  let(:path) { "/test/path/#{Time.now.to_i}" }

  it "should have Content-Length on OPTIONS request"
  it "should have Content-Length on GET request"

  context "configuration" do
    let(:app) { Firehose::Rack::Consumer }

    it "should configure long polling timeout" do
      app.new{ |a| a.http_long_poll.timeout = 300 }.http_long_poll.timeout.should == 300
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
firehose-1.2.20 spec/lib/rack/consumer_spec.rb
firehose-1.2.13 spec/lib/rack/consumer_spec.rb
firehose-1.2.12 spec/lib/rack/consumer_spec.rb
firehose-1.2.11 spec/lib/rack/consumer_spec.rb
firehose-1.2.10 spec/lib/rack/consumer_spec.rb
firehose-1.2.9 spec/lib/rack/consumer_spec.rb