ensure install generator references right rails constant and get tests running on modern ruby