Sha256: 828521944fa214addc3c3cbb93a39e694d1e99e5615c929eda023b838df8d59f

Contents?: true

Size: 554 Bytes

Versions: 2

Compression:

Stored size: 554 Bytes

Contents

require 'spec_helper'

describe Restfulness::Dispatchers::Rack do

  let :klass do
    Restfulness::Dispatchers::Rack
  end

  let :app do
    Class.new(Restfulness::Application).new
  end

  let :obj do
    klass.new(app)
  end

  let :env do
    {
      'REQUEST_METHOD' => 'GET',
      'SCRIPT_NAME'    => 'projects',
      'PATH_INFO'      => 'projects',
      'QUERY_STRING'   => '',
      'SERVER_NAME'    => 'localhost',
      'SERVER_PORT'    => '3000',
      'HTTP_CONTENT_TYPE' => 'application/json'
    }
  end

  describe "#" do

  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
restfulness-0.2.0 spec/unit/dispatchers/rack_spec.rb
restfulness-0.1.0 spec/unit/dispatchers/rack_spec.rb