Add specs covering rails 4 breakage