Mercurial > hg > soundsoftware-site
comparison test/functional/calendars_controller_test.rb @ 51:371eac10df0b live
* Merge from "cannam" branch. This includes update to Redmine trunk, plus welcome/tip-of-the-day from luisf branch.
author | Chris Cannam |
---|---|
date | Wed, 24 Nov 2010 12:20:08 +0000 |
parents | 94944d00e43c |
children | af80e5618e9b |
comparison
equal
deleted
inserted
replaced
34:09b1d4349da3 | 51:371eac10df0b |
---|---|
13 def test_cross_project_calendar | 13 def test_cross_project_calendar |
14 get :show | 14 get :show |
15 assert_response :success | 15 assert_response :success |
16 assert_template 'calendar' | 16 assert_template 'calendar' |
17 assert_not_nil assigns(:calendar) | 17 assert_not_nil assigns(:calendar) |
18 end | |
19 | |
20 context "GET :show" do | |
21 should "run custom queries" do | |
22 @query = Query.generate_default! | |
23 | |
24 get :show, :query_id => @query.id | |
25 assert_response :success | |
26 end | |
27 | |
18 end | 28 end |
19 | 29 |
20 def test_week_number_calculation | 30 def test_week_number_calculation |
21 Setting.start_of_week = 7 | 31 Setting.start_of_week = 7 |
22 | 32 |