refactor events_controller_spec