This line is failing because it requires @assignments. Can you add that line back above that sets @assignments? It's going to get extracted into Coursedata in #521, but until then I guess we'll just have to keep it.