should "work" do
i2 = Issue.find(2)
i2.update_attribute(:due_date, 1.month.from_now)
-
+
get :show, :project_id => 1
assert_response :success
assert_template 'show.html.erb'
i = Issue.find(2)
assert_select "div a.issue", /##{i.id}/
end
-
+
should "work without issue due dates" do
Issue.update_all("due_date = NULL")
-
+
get :show, :project_id => 1
assert_response :success
assert_template 'show.html.erb'
assert_not_nil assigns(:gantt)
end
-
+
should "work without issue and version due dates" do
Issue.update_all("due_date = NULL")
Version.update_all("effective_date = NULL")
-
+
get :show, :project_id => 1
assert_response :success
assert_template 'show.html.erb'
get :show
assert_response :success
assert_template 'show.html.erb'
-
+
assert_tag 'a', :content => /eCookbook/
# Root private project
assert_no_tag 'a', {:content => /OnlineStore/}
assert @response.body.starts_with?('%PDF')
assert_not_nil assigns(:gantt)
end
-
+
should "export to png" do
get :show, :project_id => 1, :format => 'png'
assert_response :success