Write spec for spinner controller.
Write spec for directive.