fix tests

This commit is contained in:
Dmitriy Zaporozhets 2013-04-01 18:35:29 +03:00
parent adccf3b499
commit 3b88636d3c
3 changed files with 5 additions and 8 deletions

View file

@ -12,8 +12,9 @@ describe "Profile account page" do
Gitlab.config.gitlab.stub(:signup_enabled).and_return(true)
visit account_profile_path
end
it { page.should have_content("Remove account") }
it "should delete the account", js: true do
expect { click_link "Delete account" }.to change {User.count}.by(-1)
current_path.should == new_user_session_path
@ -45,4 +46,4 @@ describe "Profile account page" do
current_path.should == account_profile_path
end
end
end
end

View file

@ -14,7 +14,7 @@ describe "Application access" do
end
describe "Project" do
let(:project) { create(:project) }
let(:project) { create(:project_with_code) }
let(:master) { create(:user) }
let(:guest) { create(:user) }