Merge branch 'state-machine' of https://github.com/Undev/gitlabhq into Undev-state-machine
Conflicts: app/models/issue.rb app/models/merge_request.rb
This commit is contained in:
commit
155703c613
55 changed files with 521 additions and 428 deletions
|
@ -122,10 +122,9 @@ class ProjectIssues < Spinach::FeatureSteps
|
|||
|
||||
And 'project "Shop" have "Release 0.3" closed issue' do
|
||||
project = Project.find_by_name("Shop")
|
||||
create(:issue,
|
||||
create(:closed_issue,
|
||||
:title => "Release 0.3",
|
||||
:project => project,
|
||||
:author => project.users.first,
|
||||
:closed => true)
|
||||
:author => project.users.first)
|
||||
end
|
||||
end
|
||||
|
|
|
@ -26,7 +26,7 @@ class ProjectMergeRequests < Spinach::FeatureSteps
|
|||
|
||||
Then 'I should see closed merge request "Bug NS-04"' do
|
||||
mr = MergeRequest.find_by_title("Bug NS-04")
|
||||
mr.closed.should be_true
|
||||
mr.closed?.should be_true
|
||||
page.should have_content "Closed by"
|
||||
end
|
||||
|
||||
|
@ -80,11 +80,10 @@ class ProjectMergeRequests < Spinach::FeatureSteps
|
|||
|
||||
And 'project "Shop" have "Feature NS-03" closed merge request' do
|
||||
project = Project.find_by_name("Shop")
|
||||
create(:merge_request,
|
||||
create(:closed_merge_request,
|
||||
title: "Feature NS-03",
|
||||
project: project,
|
||||
author: project.users.first,
|
||||
closed: true)
|
||||
author: project.users.first)
|
||||
end
|
||||
|
||||
And 'I switch to the diff tab' do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue