setup spec/rails_helper (backports from other projects)