move capybara scenarios to spec/features

This commit is contained in:
Dmitriy Zaporozhets 2013-02-21 10:41:37 +02:00
parent 9f722427e5
commit 03f6a28ec0
18 changed files with 3 additions and 1 deletions

View 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