[DISC]
I'm not sure this should be a controller test. Here you are actually testing that `Kpi::Semanal.where(anyo: Date.yesterday.year, semana: @semanas)` works well, so here I would ensure the call is properly done with `.should_receive(:x).with(a, b)` and that's all.

In addition, if you want to ensure the data is ok, you could wrap `where(anyo: Date.yesterday.year, semana: @semanas)` into a `Kpi::Semanal`'s method and test it in `semanal_spec` instead.