gitlabhq/spec/requests/projects_spec.rb

18 lines
400 B
Ruby
Raw Normal View History

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