@@ -411,7 +411,6 class Redmine::Helpers::GanttHelperTest < ActionView::TestCase | |||||
411 | context "status content" do |
|
411 | context "status content" do | |
412 | should "appear at the far left, even if it's far in the past" do |
|
412 | should "appear at the far left, even if it's far in the past" do | |
413 | @gantt.instance_variable_set('@date_to', (today - 14)) |
|
413 | @gantt.instance_variable_set('@date_to', (today - 14)) | |
414 |
|
||||
415 | @output_buffer = @gantt.line_for_project(@project, {:format => :html, :zoom => 4}) |
|
414 | @output_buffer = @gantt.line_for_project(@project, {:format => :html, :zoom => 4}) | |
416 | assert_select "div.project.label", /#{@project.name}/ |
|
415 | assert_select "div.project.label", /#{@project.name}/ | |
417 | end |
|
416 | end | |
@@ -439,7 +438,6 class Redmine::Helpers::GanttHelperTest < ActionView::TestCase | |||||
439 | @project.trackers << @tracker |
|
438 | @project.trackers << @tracker | |
440 | @version = Version.generate!(:effective_date => (today - 1)) |
|
439 | @version = Version.generate!(:effective_date => (today - 1)) | |
441 | @project.versions << @version |
|
440 | @project.versions << @version | |
442 |
|
||||
443 | @project.issues << Issue.generate!(:fixed_version => @version, |
|
441 | @project.issues << Issue.generate!(:fixed_version => @version, | |
444 | :subject => "gantt#subject_for_version", |
|
442 | :subject => "gantt#subject_for_version", | |
445 | :tracker => @tracker, |
|
443 | :tracker => @tracker, | |
@@ -513,7 +511,6 class Redmine::Helpers::GanttHelperTest < ActionView::TestCase | |||||
513 | @output_buffer = @gantt.line_for_version(@version, {:format => :html, :zoom => 4}) |
|
511 | @output_buffer = @gantt.line_for_version(@version, {:format => :html, :zoom => 4}) | |
514 | assert_select "div.version.task_todo[style*=width:58px]", true, @output_buffer |
|
512 | assert_select "div.version.task_todo[style*=width:58px]", true, @output_buffer | |
515 | end |
|
513 | end | |
516 |
|
||||
517 | end |
|
514 | end | |
518 |
|
515 | |||
519 | context "late line" do |
|
516 | context "late line" do | |
@@ -692,7 +689,6 class Redmine::Helpers::GanttHelperTest < ActionView::TestCase | |||||
692 |
|
689 | |||
693 | should "not be the total done width if the chart starts after issue start date" do |
|
690 | should "not be the total done width if the chart starts after issue start date" do | |
694 | create_gantt(@project, :date_from => (today - 5)) |
|
691 | create_gantt(@project, :date_from => (today - 5)) | |
695 |
|
||||
696 | @output_buffer = @gantt.line_for_issue(@issue, {:format => :html, :zoom => 4}) |
|
692 | @output_buffer = @gantt.line_for_issue(@issue, {:format => :html, :zoom => 4}) | |
697 | assert_select "div.task_done[style*=left:0px]", true, @output_buffer |
|
693 | assert_select "div.task_done[style*=left:0px]", true, @output_buffer | |
698 | assert_select "div.task_done[style*=width:8px]", true, @output_buffer |
|
694 | assert_select "div.task_done[style*=width:8px]", true, @output_buffer |
General Comments 0
You need to be logged in to leave comments.
Login now