Rewrite spec to use let syntax instead