assert_template 'calendar'
assert_not_nil assigns(:calendar)
end
-
+
def test_cross_project_calendar
get :show
assert_response :success
context "GET :show" do
should "run custom queries" do
@query = Query.generate_default!(:is_public => true)
-
+
get :show, :query_id => @query.id
assert_response :success
end
-
+
end
-
+
def test_week_number_calculation
Setting.start_of_week = 7
-
+
get :show, :month => '1', :year => '2010'
assert_response :success
-
+
assert_tag :tag => 'tr',
:descendant => {:tag => 'td',
:attributes => {:class => 'week-number'}, :content => '53'},