Sha256: bc85f16c6e91c0ee52d8676fecb58b3c04606122b0a6ff8e9afd7cf95bc41744

Contents?: true

Size: 826 Bytes

Versions: 31

Compression:

Stored size: 826 Bytes

Contents

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

if RUBY_VERSION_INT >= 190
module PhusionPassenger

describe "Rack loader with Rails 4.0" do
	include LoaderSpecHelper

	before :each do
		@stub = register_stub(RackStub.new("rails4.0"))
	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 "4.0"
	end

	include_examples "analytics logging extensions for Rails"
end

end # module PhusionPassenger
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
passenger-4.0.45 test/ruby/rails4.0/preloader_spec.rb
passenger-4.0.44 test/ruby/rails4.0/preloader_spec.rb
passenger-4.0.43 test/ruby/rails4.0/preloader_spec.rb
passenger-4.0.42 test/ruby/rails4.0/preloader_spec.rb
passenger-4.0.41 test/ruby/rails4.0/preloader_spec.rb
passenger-4.0.40 test/ruby/rails4.0/preloader_spec.rb
passenger-4.0.39 test/ruby/rails4.0/preloader_spec.rb
passenger-4.0.38 test/ruby/rails4.0/preloader_spec.rb
passenger-4.0.37 test/ruby/rails4.0/preloader_spec.rb
passenger-4.0.36 test/ruby/rails4.0/preloader_spec.rb
passenger-4.0.35 test/ruby/rails4.0/preloader_spec.rb
passenger-4.0.34 test/ruby/rails4.0/preloader_spec.rb
passenger-4.0.33 test/ruby/rails4.0/preloader_spec.rb
passenger-4.0.32 test/ruby/rails4.0/preloader_spec.rb
passenger-4.0.31 test/ruby/rails4.0/preloader_spec.rb
passenger-4.0.30 test/ruby/rails4.0/preloader_spec.rb
passenger-4.0.29 test/ruby/rails4.0/preloader_spec.rb
passenger-4.0.28 test/ruby/rails4.0/preloader_spec.rb
passenger-4.0.27 test/ruby/rails4.0/preloader_spec.rb
passenger-4.0.26 test/ruby/rails4.0/preloader_spec.rb