119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
|
# File 'lib/spork/test_framework.rb', line 119
def preload
Spork.exec_prefork do
if not bootstrapped?
stderr.puts "#{helper_file} has not been bootstrapped. Run spork --bootstrap to do so."
stderr.flush
if framework.bootstrap_required?
stderr.puts "I can't do anything for you by default for the framework you're using: #{framework.short_name}.\nYou must bootstrap #{helper_file} to continue."
stderr.flush
return false
else
load(framework.entry_point)
end
end
framework.preload do
if bootstrapped?
stderr.puts "Loading Spork.prefork block..."
stderr.flush
load(helper_file)
end
end
end
true
end
|