Fix assert_not error with rails 3