summaryrefslogtreecommitdiff
path: root/spec/features/projects_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/features/projects_spec.rb')
-rw-r--r--spec/features/projects_spec.rb17
1 files changed, 17 insertions, 0 deletions
diff --git a/spec/features/projects_spec.rb b/spec/features/projects_spec.rb
new file mode 100644
index 00000000000..7bc48260935
--- /dev/null
+++ b/spec/features/projects_spec.rb
@@ -0,0 +1,17 @@
+require 'spec_helper'
+
+describe "Projects" do
+ before { login_as :user }
+
+ describe "DELETE /projects/:id" do
+ before do
+ @project = create(:project, namespace: @user.namespace)
+ @project.team << [@user, :master]
+ visit edit_project_path(@project)
+ end
+
+ it "should be correct path" do
+ expect { click_link "Remove" }.to change {Project.count}.by(-1)
+ end
+ end
+end