move capybara scenarios to spec/features
This commit is contained in:
parent
9f722427e5
commit
03f6a28ec0
18 changed files with 3 additions and 1 deletions
17
spec/features/projects_spec.rb
Normal file
17
spec/features/projects_spec.rb
Normal file
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue