Spinach tests fixed
This commit is contained in:
parent
69698aacbc
commit
6074896cbf
|
@ -1,6 +1,6 @@
|
||||||
%li{class: "milestone milestone-#{milestone.closed? ? 'closed' : 'open'}", id: dom_id(milestone) }
|
%li{class: "milestone milestone-#{milestone.closed? ? 'closed' : 'open'}", id: dom_id(milestone) }
|
||||||
.pull-right
|
.pull-right
|
||||||
- if can?(current_user, :admin_milestone, milestone.project) and milestone.opened?
|
- if can?(current_user, :admin_milestone, milestone.project) and milestone.active?
|
||||||
= link_to edit_project_milestone_path(milestone.project, milestone), class: "btn btn-small edit-milestone-link grouped" do
|
= link_to edit_project_milestone_path(milestone.project, milestone), class: "btn btn-small edit-milestone-link grouped" do
|
||||||
%i.icon-edit
|
%i.icon-edit
|
||||||
Edit
|
Edit
|
||||||
|
|
|
@ -122,10 +122,9 @@ class ProjectIssues < Spinach::FeatureSteps
|
||||||
|
|
||||||
And 'project "Shop" have "Release 0.3" closed issue' do
|
And 'project "Shop" have "Release 0.3" closed issue' do
|
||||||
project = Project.find_by_name("Shop")
|
project = Project.find_by_name("Shop")
|
||||||
create(:issue,
|
create(:closed_issue,
|
||||||
:title => "Release 0.3",
|
:title => "Release 0.3",
|
||||||
:project => project,
|
:project => project,
|
||||||
:author => project.users.first,
|
:author => project.users.first)
|
||||||
:closed => true)
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -26,7 +26,7 @@ class ProjectMergeRequests < Spinach::FeatureSteps
|
||||||
|
|
||||||
Then 'I should see closed merge request "Bug NS-04"' do
|
Then 'I should see closed merge request "Bug NS-04"' do
|
||||||
mr = MergeRequest.find_by_title("Bug NS-04")
|
mr = MergeRequest.find_by_title("Bug NS-04")
|
||||||
mr.closed.should be_true
|
mr.closed?.should be_true
|
||||||
page.should have_content "Closed by"
|
page.should have_content "Closed by"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -64,7 +64,7 @@ class ProjectMergeRequests < Spinach::FeatureSteps
|
||||||
|
|
||||||
And 'project "Shop" have "Bug NS-04" open merge request' do
|
And 'project "Shop" have "Bug NS-04" open merge request' do
|
||||||
project = Project.find_by_name("Shop")
|
project = Project.find_by_name("Shop")
|
||||||
create(:merge_request,
|
create(:closed_merge_request,
|
||||||
title: "Bug NS-04",
|
title: "Bug NS-04",
|
||||||
project: project,
|
project: project,
|
||||||
author: project.users.first)
|
author: project.users.first)
|
||||||
|
@ -80,11 +80,10 @@ class ProjectMergeRequests < Spinach::FeatureSteps
|
||||||
|
|
||||||
And 'project "Shop" have "Feature NS-03" closed merge request' do
|
And 'project "Shop" have "Feature NS-03" closed merge request' do
|
||||||
project = Project.find_by_name("Shop")
|
project = Project.find_by_name("Shop")
|
||||||
create(:merge_request,
|
create(:closed_merge_request,
|
||||||
title: "Feature NS-03",
|
title: "Feature NS-03",
|
||||||
project: project,
|
project: project,
|
||||||
author: project.users.first,
|
author: project.users.first)
|
||||||
closed: true)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
And 'I switch to the diff tab' do
|
And 'I switch to the diff tab' do
|
||||||
|
|
Loading…
Reference in a new issue