This build is an out-of-date deployment to #{environment_link_for_build(@build.project,@build)}. View the most recent deployment #{deployment_link(@project,last_deployment)}.
expect(rendered).tohave_css('.environment-information',text: "This build is an out-of-date deployment to #{environment.name}. View the most recent deployment #1")