features/rails_integration.feature in spork-0.5.2 vs features/rails_integration.feature in spork-0.5.3

- old
+ new

@@ -13,15 +13,17 @@ require 'spec' Spork.prefork do ENV["RAILS_ENV"] = "testeroni" $run_phase = :prefork + ($loaded_stuff ||= []) << 'prefork block' require File.dirname(__FILE__) + '/../config/environment.rb' end Spork.each_run do $run_phase = :each_run + ($loaded_stuff ||= []) << 'each_run block' puts "I'm loading the stuff just for this run..." end class ActiveRecord::Base class << self @@ -52,9 +54,11 @@ $loaded_stuff.should include('establish_connection') $loaded_stuff.should include('User') $loaded_stuff.should include('UserObserver') $loaded_stuff.should include('ApplicationHelper') $loaded_stuff.should include('config/routes.rb') + $loaded_stuff.should include('each_run block') + $loaded_stuff.should include('prefork block') puts "Specs successfully run within spork, and all initialization files were loaded" end end """ Scenario: Analyzing files were preloaded