Bootstrap: Issues, Merge Requests, SSH Key completed
This commit is contained in:
parent
20721eff1c
commit
fca1ffb888
32 changed files with 213 additions and 1010 deletions
|
@ -34,14 +34,7 @@ describe "User MergeRequests" do
|
|||
|
||||
it { should have_content(@merge_request1.title[0..10]) }
|
||||
it { should have_content(@merge_request1.project.name) }
|
||||
it { should have_content(@merge_request1.target_branch) }
|
||||
it { should have_content(@merge_request1.source_branch) }
|
||||
it { should have_content(@merge_request1.assignee.name) }
|
||||
|
||||
it { should have_content(@merge_request2.title[0..10]) }
|
||||
it { should have_content(@merge_request2.project.name) }
|
||||
it { should have_content(@merge_request2.target_branch) }
|
||||
it { should have_content(@merge_request2.source_branch) }
|
||||
it { should have_content(@merge_request2.assignee.name) }
|
||||
end
|
||||
end
|
||||
|
|
|
@ -51,17 +51,17 @@ describe "Issues" do
|
|||
# admin access to remove issue
|
||||
@user.users_projects.destroy_all
|
||||
project.add_access(@user, :read, :write, :admin)
|
||||
visit project_issues_path(project)
|
||||
visit edit_project_issue_path(project, @issue)
|
||||
end
|
||||
|
||||
it "should remove entry" do
|
||||
expect {
|
||||
click_link "destroy_issue_#{@issue.id}"
|
||||
click_link "Remove"
|
||||
}.to change { Issue.count }.by(-1)
|
||||
end
|
||||
end
|
||||
|
||||
describe "statuses", :js => true do
|
||||
describe "statuses" do
|
||||
before do
|
||||
@closed_issue = Factory :issue,
|
||||
:author => @user,
|
||||
|
@ -76,13 +76,13 @@ describe "Issues" do
|
|||
end
|
||||
|
||||
it "should show only closed" do
|
||||
choose "closed_issues"
|
||||
click_link "Closed"
|
||||
should have_no_content(@issue.title)
|
||||
should have_content(@closed_issue.title[0..25])
|
||||
end
|
||||
|
||||
it "should show all" do
|
||||
choose "all_issues"
|
||||
click_link "All"
|
||||
should have_content(@issue.title[0..25])
|
||||
should have_content(@closed_issue.title[0..25])
|
||||
end
|
||||
|
@ -182,7 +182,6 @@ describe "Issues" do
|
|||
:assignee => @user,
|
||||
:project => project
|
||||
visit project_issues_path(project)
|
||||
page.execute_script("$('.action-links').css('display', 'block');")
|
||||
click_link "Edit"
|
||||
end
|
||||
|
||||
|
@ -200,7 +199,6 @@ describe "Issues" do
|
|||
it "should update issue fields" do
|
||||
click_button "Save"
|
||||
|
||||
page.should_not have_content("Issue ##{@issue.id}")
|
||||
page.should have_content @user.name
|
||||
page.should have_content "bug 345"
|
||||
page.should have_content project.name
|
||||
|
@ -226,7 +224,7 @@ describe "Issues" do
|
|||
@issue.save
|
||||
|
||||
visit project_issues_path(project)
|
||||
choose 'closed_issues'
|
||||
click_link 'Closed'
|
||||
fill_in 'issue_search', :with => 'foobar'
|
||||
|
||||
page.should have_content 'foobar'
|
||||
|
|
|
@ -5,7 +5,7 @@ describe "Projects" do
|
|||
|
||||
describe "GET /projects" do
|
||||
before do
|
||||
@project = Factory :project
|
||||
@project = Factory :project, :owner => @user
|
||||
@project.add_access(@user, :read)
|
||||
visit projects_path
|
||||
end
|
||||
|
@ -15,7 +15,7 @@ describe "Projects" do
|
|||
end
|
||||
|
||||
it "should have link to new project" do
|
||||
page.should have_content("Create new project")
|
||||
page.should have_content("New Project")
|
||||
end
|
||||
|
||||
it "should have project" do
|
||||
|
@ -26,7 +26,7 @@ describe "Projects" do
|
|||
describe "GET /projects/new" do
|
||||
before do
|
||||
visit projects_path
|
||||
click_link "Create new project"
|
||||
click_link "New Project"
|
||||
end
|
||||
|
||||
it "should be correct path" do
|
||||
|
@ -68,7 +68,7 @@ describe "Projects" do
|
|||
|
||||
describe "GET /projects/show" do
|
||||
before do
|
||||
@project = Factory :project
|
||||
@project = Factory :project, :owner => @user
|
||||
@project.add_access(@user, :read)
|
||||
|
||||
visit project_path(@project)
|
||||
|
@ -128,7 +128,7 @@ describe "Projects" do
|
|||
|
||||
describe "PUT /projects/:id" do
|
||||
before do
|
||||
@project = Factory :project
|
||||
@project = Factory :project, :owner => @user
|
||||
@project.add_access(@user, :admin, :read)
|
||||
|
||||
visit edit_project_path(@project)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue