Add tests for disabled blob edit button cases.

Behavior here was undertested, I felt that while doing: https://github.com/gitlabhq/gitlabhq/pull/7886