Sha256: e16f9198dd7a64a4166a4734c3e1756ae9a2c248718ac9d4e48a2be02996395b

Contents?: true

Size: 230 Bytes

Versions: 8

Compression:

Stored size: 230 Bytes

Contents

describe 'ServerPort Middleware' do
  def app
    ServerPort.new(Application.new)
  end
  
  it_behaves_like "an ok request"

  it 'adds the server port to the response' do
    expect(last_response.body).to include("80")
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
learn-generate-1.0.16 lib/templates/rack/spec/controllers/01_server_port_spec.rb
learn-generate-1.0.15 lib/templates/rack/spec/controllers/01_server_port_spec.rb
learn-generate-1.0.14 lib/templates/rack/spec/controllers/01_server_port_spec.rb
learn-generate-1.0.13 lib/templates/rack/spec/controllers/01_server_port_spec.rb
learn-generate-1.0.12 lib/templates/rack/spec/controllers/01_server_port_spec.rb
learn-generate-1.0.11 lib/templates/rack/spec/controllers/01_server_port_spec.rb
learn-generate-1.0.1 lib/templates/rack/spec/controllers/01_server_port_spec.rb
learn-generate-1.0.0 lib/templates/rack/spec/controllers/01_server_port_spec.rb