Skip to content
Snippets Groups Projects
Commit 9b807a10 authored by Shinya Maeda's avatar Shinya Maeda
Browse files

Improve test quality

parent 66d43c84
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -25,7 +25,7 @@
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
Loading
Loading
@@ -64,7 +64,7 @@
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
Loading
Loading
@@ -77,7 +77,7 @@
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
Loading
Loading
Loading
Loading
@@ -99,7 +99,7 @@
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
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment