Sha256: e36246293b155224ecb18a33bc0b250a735337c4262e970093f00650149aa274
Contents?: true
Size: 928 Bytes
Versions: 1
Compression:
Stored size: 928 Bytes
Contents
Feature: At exit during each run In order to make sure at_exit hooks defined during the run get called I want to override kernel #at_exit Scenario: at exit Given a file named "spec/spec_helper.rb" with: """ require 'rubygems' require 'spec' Spork.prefork do puts "loading" at_exit { puts "prefork at_exit called" } end Spork.each_run do puts "running" at_exit { puts "each_run at_exit called" } end """ And a file named "spec/did_it_work_spec.rb" with: """ describe "Did it work?" do it "checks to see if all worked" do puts "ran specs" end end """ When I fire up a spork instance with "spork rspec" And I run spec --drb spec/did_it_work_spec.rb Then the output should contain "each_run at_exit called" Then the output should not contain "prefork at_exit called"
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
spork-0.7.6 | features/at_exit_during_each_run.feature |