diff --git a/test/functional/calendars_controller_test.rb b/test/functional/calendars_controller_test.rb index bb12316..84b886d 100644 --- a/test/functional/calendars_controller_test.rb +++ b/test/functional/calendars_controller_test.rb @@ -9,7 +9,7 @@ class CalendarsControllerTest < ActionController::TestCase assert_template 'calendar' assert_not_nil assigns(:calendar) end - + def test_cross_project_calendar get :show assert_response :success @@ -20,19 +20,19 @@ class CalendarsControllerTest < ActionController::TestCase 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'},