refactoring the index view spec - could this be shared with cucumber steps?