BigW Consortium Gitlab

Improve project remove spec

parent 74217f75
...@@ -10,8 +10,12 @@ describe "Projects", feature: true do ...@@ -10,8 +10,12 @@ describe "Projects", feature: true do
visit edit_project_path(@project) visit edit_project_path(@project)
end end
it "should be correct path" do it "should be correct path", js: true do
expect { click_link "Remove project" }.to change {Project.count}.by(-1) expect {
click_link "Remove project"
fill_in 'confirm_name_input', with: @project.path
click_button 'Confirm'
}.to change {Project.count}.by(-1)
end end
end end
end end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment