Don't generate views if there is no template engine

rails-api disables view generation by setting template_engine to nil, but rspec still generates view specs.

This patch will prevent rspec from generating view specs when no views are being generated.