|
|
@@ -18,7 +18,7 @@ class GanttsControllerTest < ActionController::TestCase |
|
|
|
|
|
|
|
get :show, :project_id => 1 |
|
|
|
assert_response :success |
|
|
|
assert_template 'show.html.erb' |
|
|
|
assert_template 'gantts/show' |
|
|
|
assert_not_nil assigns(:gantt) |
|
|
|
# Issue with start and due dates |
|
|
|
i = Issue.find(1) |
|
|
@@ -34,7 +34,7 @@ class GanttsControllerTest < ActionController::TestCase |
|
|
|
|
|
|
|
get :show, :project_id => 1 |
|
|
|
assert_response :success |
|
|
|
assert_template 'show.html.erb' |
|
|
|
assert_template 'gantts/show' |
|
|
|
assert_not_nil assigns(:gantt) |
|
|
|
end |
|
|
|
|
|
|
@@ -44,14 +44,14 @@ class GanttsControllerTest < ActionController::TestCase |
|
|
|
|
|
|
|
get :show, :project_id => 1 |
|
|
|
assert_response :success |
|
|
|
assert_template 'show.html.erb' |
|
|
|
assert_template 'gantts/show' |
|
|
|
assert_not_nil assigns(:gantt) |
|
|
|
end |
|
|
|
|
|
|
|
should "work cross project" do |
|
|
|
get :show |
|
|
|
assert_response :success |
|
|
|
assert_template 'show.html.erb' |
|
|
|
assert_template 'gantts/show' |
|
|
|
assert_not_nil assigns(:gantt) |
|
|
|
assert_not_nil assigns(:gantt).query |
|
|
|
assert_nil assigns(:gantt).project |
|
|
@@ -60,7 +60,7 @@ class GanttsControllerTest < ActionController::TestCase |
|
|
|
should "not disclose private projects" do |
|
|
|
get :show |
|
|
|
assert_response :success |
|
|
|
assert_template 'show.html.erb' |
|
|
|
assert_template 'gantts/show' |
|
|
|
|
|
|
|
assert_tag 'a', :content => /eCookbook/ |
|
|
|
# Root private project |