move attribute setting locally inside the spec