Refactoring RSpec testing, altering index view