Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-10-08 16:05:14 +0400
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-10-08 16:05:14 +0400
commitb485fdb5c1eb126d43b66a3c7fad45cd7961496d (patch)
treea6521190a13d331cc63a934d2bea40448ae56a95 /spec/features/projects_spec.rb
parent74217f753f4f4f6d882af651ccb4ef88ed5c87d4 (diff)
Improve project remove spec
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'spec/features/projects_spec.rb')
-rw-r--r--spec/features/projects_spec.rb8
1 files changed, 6 insertions, 2 deletions
diff --git a/spec/features/projects_spec.rb b/spec/features/projects_spec.rb
index 524c4d5fa21..98ba5a47ee5 100644
--- a/spec/features/projects_spec.rb
+++ b/spec/features/projects_spec.rb
@@ -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