Removed issues,mr delete buttons. Refactored models

This commit is contained in:
Dmitriy Zaporozhets 2012-03-04 15:35:15 +02:00
parent 3fe9d2972f
commit 0727edd8a0
13 changed files with 82 additions and 186 deletions

View file

@ -46,21 +46,6 @@ describe "Issues" do
page.body.should have_selector("entry summary", :text => @issue.title)
end
describe "Destroy" do
before do
# admin access to remove issue
@user.users_projects.destroy_all
project.add_access(@user, :read, :write, :admin)
visit edit_project_issue_path(project, @issue)
end
it "should remove entry" do
expect {
click_link "Remove"
}.to change { Issue.count }.by(-1)
end
end
describe "statuses" do
before do
@closed_issue = Factory :issue,