test/ruby/rails4.1/preloader_spec.rb in passenger-5.0.0.beta3 vs test/ruby/rails4.1/preloader_spec.rb in passenger-5.0.0.rc1

- old
+ new

@@ -4,31 +4,31 @@ if RUBY_VERSION_INT >= 190 module PhusionPassenger describe "Rack preloader with Rails 4.1" do - include LoaderSpecHelper + include LoaderSpecHelper - before :each do - @stub = register_stub(RackStub.new("rails4.1")) - end + before :each do + @stub = register_stub(RackStub.new("rails4.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 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.1" - end + def rails_version + return "4.1" + end - include_examples "Union Station extensions for Rails" + include_examples "Union Station extensions for Rails" end end # module PhusionPassenger end