Sha256: b611e28058b65edd8c4d034ead7f03f2d877d28e651a12b1c199710dc67450d4
Contents?: true
Size: 999 Bytes
Versions: 27
Compression:
Stored size: 999 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper') module PhusionPassenger shared_examples_for "a Rails spawner that supports #reload()" do it "#reload() reloads all applications" do use_some_stub do |stub1| use_some_stub do |stub2| File.append(stub1.startup_file, %q{ File.write("output.txt", "stub 1") }) spawn_stub_application(stub1).close File.append(stub2.startup_file, %q{ File.write("output.txt", "stub 2") }) spawn_stub_application(stub2).close spawner.reload File.append(stub1.startup_file, %q{ File.write("output.txt", "stub 1 modified") }) spawn_stub_application(stub1).close File.append(stub2.startup_file, %q{ File.write("output.txt", "stub 2 modified") }) spawn_stub_application(stub2).close File.read("#{stub1.app_root}/output.txt").should == "stub 1 modified" File.read("#{stub2.app_root}/output.txt").should == "stub 2 modified" end end end end end # module PhusionPassenger
Version data entries
27 entries across 27 versions & 4 rubygems