Fix handling forked rspec results
Add insert_before and insert_after for railtie