I am not sure if my sentence makes sense in English. I hope someone can help me to write it correctly. I am not sure if "swear by" is correct English, but I could not remember any better word.

As a teenager, Ivan swore by the Communist Party and single-party system, but when he saw that communism had no future, he shifted his belief and swore by capitalism and multi-party system.