Refactor GradientPreview specs
Add specs around GradientCode directive