The damage buff is applied when you cast it. So if you have raging strikes on then cast thunder, all those thunder ticks will be buffed by raging strikes, even if raging strikes wears off before thunder does, whereas if you cast thunder then use raging strikes none of the ticks get buffed.