2012-09-10 10:51:02 +02:00
|
|
|
class DashboardMergeRequests < Spinach::FeatureSteps
|
2012-09-10 17:35:03 +02:00
|
|
|
include SharedAuthentication
|
|
|
|
include SharedPaths
|
|
|
|
|
2012-09-10 10:51:02 +02:00
|
|
|
Then 'I should see my merge requests' do
|
|
|
|
merge_requests = @user.merge_requests
|
|
|
|
merge_requests.each do |mr|
|
|
|
|
page.should have_content(mr.title[0..10])
|
|
|
|
page.should have_content(mr.project.name)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
And 'I have authored merge requests' do
|
2012-11-07 12:56:48 +01:00
|
|
|
project1 = create :project
|
|
|
|
project2 = create :project
|
2012-09-10 10:51:02 +02:00
|
|
|
|
2013-01-04 07:43:25 +01:00
|
|
|
project1.team << [@user, :master]
|
|
|
|
project2.team << [@user, :master]
|
2012-09-10 10:51:02 +02:00
|
|
|
|
2012-11-07 12:56:48 +01:00
|
|
|
merge_request1 = create :merge_request, author: @user, project: project1
|
|
|
|
merge_request2 = create :merge_request, author: @user, project: project2
|
2012-09-10 10:51:02 +02:00
|
|
|
end
|
|
|
|
end
|