Sha256: 3eac21abb5b1a6aabc884326bdc1007dd7589dc32355c341ed961cb93f2e5b81

Contents?: true

Size: 419 Bytes

Versions: 3

Compression:

Stored size: 419 Bytes

Contents

require 'spec_helper'
require 'ronin/web/middleware/response'

describe Web::Middleware::Response do
  subject do
    Web::Middleware::Response.new(
      ['Hello'],
      200,
      {'Content-Type' => 'text/html'}
    )
  end

  it "should allow implicit splatting" do
    status, headers, body = subject

    status.should == 200
    headers['Content-Type'].should == 'text/html'
    body.should == subject
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ronin-web-0.3.0.rc1 spec/web/middleware/response_spec.rb
ronin-web-0.3.0.pre2 spec/web/middleware/response_spec.rb
ronin-web-0.3.0.pre1 spec/web/middleware/response_spec.rb