test/ruby/rails3.0/loader_spec.rb in passenger-5.0.0.beta3 vs test/ruby/rails3.0/loader_spec.rb in passenger-5.0.0.rc1

- old
+ new

@@ -3,24 +3,24 @@ require 'ruby/shared/rails/union_station_extensions_sharedspec' module PhusionPassenger describe "Rack loader with Rails 3.0" do - include LoaderSpecHelper + include LoaderSpecHelper - before :each do - @stub = register_stub(RackStub.new("rails3.0")) - end + before :each do + @stub = register_stub(RackStub.new("rails3.0")) + end - def start(options = {}) - @loader = Loader.new(["ruby", "#{PhusionPassenger.helper_scripts_dir}/rack-loader.rb"], @stub.app_root) - return @loader.start(options) - end + def start(options = {}) + @loader = Loader.new(["ruby", "#{PhusionPassenger.helper_scripts_dir}/rack-loader.rb"], @stub.app_root) + return @loader.start(options) + end - def rails_version - return "3.0" - end + def rails_version + return "3.0" + end - include_examples "Union Station extensions for Rails" + include_examples "Union Station extensions for Rails" end end # module PhusionPassenger