Sha256: fa9c7a5ea3189fe16d47fe207c2dbac81de10be4b5ff6ce97a1807993ad6e1b3

Contents?: true

Size: 821 Bytes

Versions: 6

Compression:

Stored size: 821 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
require 'ruby/shared/loader_sharedspec'
require 'ruby/shared/rails/union_station_extensions_sharedspec'

module PhusionPassenger

describe "Rack preloader with Rails 3.1" do
  include LoaderSpecHelper

  before :each do
    @stub = register_stub(RackStub.new("rails3.1"))
  end

  def start(options = {})
    @preloader = Preloader.new(["ruby", "#{PhusionPassenger.helper_scripts_dir}/rack-preloader.rb"], @stub.app_root)
    result = @preloader.start(options)
    if result[:status] == "Ready"
      @loader = @preloader.spawn(options)
      return @loader.start(options)
    else
      return result
    end
  end

  def rails_version
    return "3.1"
  end

  include_examples "Union Station extensions for Rails"
end

end # module PhusionPassenger

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
passenger-5.0.4 test/ruby/rails3.1/preloader_spec.rb
passenger-5.0.3 test/ruby/rails3.1/preloader_spec.rb
passenger-5.0.2 test/ruby/rails3.1/preloader_spec.rb
passenger-5.0.1 test/ruby/rails3.1/preloader_spec.rb
passenger-5.0.0.rc2 test/ruby/rails3.1/preloader_spec.rb
passenger-5.0.0.rc1 test/ruby/rails3.1/preloader_spec.rb