BigW Consortium Gitlab

projects_spec.rb 400 Bytes
Newer Older
gitlabhq committed
1 2 3 4 5
require 'spec_helper'

describe "Projects" do
  before { login_as :user }

randx committed
6 7
  describe "DELETE /projects/:id" do
    before do
8
      @project = create(:project, namespace: @user.namespace)
9
      @project.team << [@user, :master]
randx committed
10 11 12 13 14 15 16
      visit edit_project_path(@project)
    end

    it "should be correct path" do
      expect { click_link "Remove" }.to change {Project.count}.by(-1)
    end
  end
gitlabhq committed
17
end