setup_subjects
@output_buffer = @gantt.subjects
assert_select "div.issue-subject", /#{@issue.subject}/
- # subject 56px: 44px + 12px(collapse/expand icon's width)
- assert_select 'div.issue-subject[style*="left:56px"]'
+ # subject 62px: 44px + 18px(collapse/expand icon's width)
+ assert_select 'div.issue-subject[style*="left:62px"]'
end
test "#subjects issue assigned to a shared version of another project should be rendered" do
assert_select 'div.issue-subject[style*="left:44px"]', /#{@issue.subject}/
# children 64px
assert_select 'div.issue-subject[style*="left:64px"]', /child1/
- # children 76px: 64px + 12px(collapse/expand icon's width)
- assert_select 'div.issue-subject[style*="left:76px"]', /child2/
- # grandchild 96px: 84px + 12px(collapse/expand icon's width)
- assert_select 'div.issue-subject[style*="left:96px"]', /grandchild/, @output_buffer
+ # children 76px: 64px + 18px(collapse/expand icon's width)
+ assert_select 'div.issue-subject[style*="left:82px"]', /child2/
+ # grandchild 96px: 84px + 18px(collapse/expand icon's width)
+ assert_select 'div.issue-subject[style*="left:102px"]', /grandchild/, @output_buffer
end
test "#lines" do
create_gantt
@output_buffer = @gantt.subject('subject', :format => :html, :indent => 40)
# subject 52px: 40px(indent) + 12px(collapse/expand icon's width)
- assert_select 'div[style*="left:52px"]'
+ assert_select 'div[style*="left:58px"]'
end
test "#line_for_project" do