Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

26 lines (20 sloc) 0.584 kb
require 'spec_helper'
describe "rackup files don't have to reside at the root" do
deploy <<-END.gsub(/^ {4}/,'')
---
application:
RACK_ROOT: #{File.dirname(__FILE__)}/../apps/rack/norootrackup
RACK_ENV: development
web:
rackup: lib/config.ru
context: /norootrackup
ruby:
version: #{RUBY_VERSION[0,3]}
END
it "should be happy" do
visit "/norootrackup"
root = File.join( File.dirname( __FILE__ ), '..', '/apps/rack/norootrackup' )
page.body =~ /RACK_ROOT=(.*)/
assert_paths_are_equal( $1, root )
end
end
Jump to Line
Something went wrong with that request. Please try again.