Commit b485fdb5 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Improve project remove spec

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent 74217f75
......@@ -10,8 +10,12 @@ describe "Projects", feature: true do
visit edit_project_path(@project)
end
it "should be correct path" do
expect { click_link "Remove project" }.to change {Project.count}.by(-1)
it "should be correct path", js: true do
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
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