Sha256: 261f1ab351766c83d04a26899021c2f5509efc6357a6684014f64d1b17e3f590

Contents?: true

Size: 394 Bytes

Versions: 27

Compression:

Stored size: 394 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/../../../spec_helper')

module PhusionPassenger

shared_examples_for "a Rails spawner" do
	it "sets RAILS_ENV" do
		after_start %q{
			File.write("rails_env.txt", RAILS_ENV)
		}
		app = spawn_some_application("environment" => "staging")
		File.read("#{app.app_root}/rails_env.txt").should == "staging"
	end
end

end # module PhusionPassenger

Version data entries

27 entries across 27 versions & 4 rubygems

Version Path
passenger-3.0.21 test/ruby/shared/spawners/classic_rails/spawner_spec.rb
passenger-3.0.19 test/ruby/shared/spawners/classic_rails/spawner_spec.rb
passenger-3.0.18 test/ruby/shared/spawners/classic_rails/spawner_spec.rb
passenger-3.0.17 test/ruby/shared/spawners/classic_rails/spawner_spec.rb
passenger-3.0.15 test/ruby/shared/spawners/classic_rails/spawner_spec.rb
passenger-3.0.14 test/ruby/shared/spawners/classic_rails/spawner_spec.rb
passenger-3.0.13 test/ruby/shared/spawners/classic_rails/spawner_spec.rb
passenger-3.0.12 test/ruby/shared/spawners/classic_rails/spawner_spec.rb
yspassenger-3.0.12 test/ruby/shared/spawners/classic_rails/spawner_spec.rb
passenger-3.0.11 test/ruby/shared/spawners/classic_rails/spawner_spec.rb
passenger-3.0.10 test/ruby/shared/spawners/classic_rails/spawner_spec.rb
passenger-3.0.9 test/ruby/shared/spawners/classic_rails/spawner_spec.rb
passenger-3.0.8 test/ruby/shared/spawners/classic_rails/spawner_spec.rb
passenger-3.0.7 test/ruby/shared/spawners/classic_rails/spawner_spec.rb
passenger-3.0.6 test/ruby/shared/spawners/classic_rails/spawner_spec.rb
passenger-3.0.5 test/ruby/shared/spawners/classic_rails/spawner_spec.rb
passenger-3.0.4 test/ruby/shared/spawners/classic_rails/spawner_spec.rb
passenger-3.0.3 test/ruby/shared/spawners/classic_rails/spawner_spec.rb
railsware-passenger-3.0.2.1 test/ruby/shared/spawners/classic_rails/spawner_spec.rb
passenger-3.0.2 test/ruby/shared/spawners/classic_rails/spawner_spec.rb