Improve test quality

This commit is contained in:
Shinya Maeda 2018-11-07 18:56:34 +09:00
parent 66d43c8481
commit 9b807a1091
2 changed files with 4 additions and 4 deletions

View File

@ -25,7 +25,7 @@ describe 'Environment' do
end
context 'without deployments' do
it 'does show no deployments' do
it 'does not show deployments' do
expect(page).to have_content('You don\'t have any deployments right now.')
end
end
@ -64,7 +64,7 @@ describe 'Environment' do
create(:deployment, :running, environment: environment, deployable: build)
end
it 'does show no deployments' do
it 'does not show deployments' do
expect(page).to have_content('You don\'t have any deployments right now.')
end
end
@ -77,7 +77,7 @@ describe 'Environment' do
create(:deployment, :failed, environment: environment, deployable: build)
end
it 'does show no deployments' do
it 'does not show deployments' do
expect(page).to have_content('You don\'t have any deployments right now.')
end
end

View File

@ -99,7 +99,7 @@ describe EnvironmentStatus do
let(:user) { project.owner }
before do
build.deployment&.update(sha: sha)
build.deployment&.update!(sha: sha)
end
context 'when environment is created on a forked project' do