gitlab-org--gitlab-foss/spec/features/projects_spec.rb

18 lines
424 B
Ruby
Raw Normal View History

2011-10-08 17:36:38 -04:00
require 'spec_helper'
describe "Projects", feature: true do
2011-10-08 17:36:38 -04:00
before { login_as :user }
2012-05-27 06:39:57 -04:00
describe "DELETE /projects/:id" do
before do
@project = create(:project, namespace: @user.namespace)
@project.team << [@user, :master]
2012-05-27 06:39:57 -04:00
visit edit_project_path(@project)
end
it "should be correct path" do
2013-03-19 00:46:07 -04:00
expect { click_link "Remove project" }.to change {Project.count}.by(-1)
2012-05-27 06:39:57 -04:00
end
end
2011-10-08 17:36:38 -04:00
end