Solar companies aren't waiting for a worst case-scenario in Spain; they're betting on it.

Solar companies have quickly jumped into that country in the past several years, lured by subsidies from the Spanish government directed at making solar economically viable. But a proposed cap on the program could cut total solar installations by a quarter next year, and even with a decision weeks away, solar companies are already looking to bolt.

In...