fix view spec, and judge.to_s