##// END OF EJS Templates
Removed some shoulda context....
Jean-Philippe Lang -
r11209:b0de1b1908d9
parent child
Show More
@@ -26,13 +26,20 class CalendarsControllerTest < ActionController::TestCase
26 :members,
26 :members,
27 :enabled_modules
27 :enabled_modules
28
28
29 def test_calendar
29 def test_show
30 get :show, :project_id => 1
30 get :show, :project_id => 1
31 assert_response :success
31 assert_response :success
32 assert_template 'calendar'
32 assert_template 'calendar'
33 assert_not_nil assigns(:calendar)
33 assert_not_nil assigns(:calendar)
34 end
34 end
35
35
36 def test_show_should_run_custom_queries
37 @query = IssueQuery.create!(:name => 'Calendar', :is_public => true)
38
39 get :show, :query_id => @query.id
40 assert_response :success
41 end
42
36 def test_cross_project_calendar
43 def test_cross_project_calendar
37 get :show
44 get :show
38 assert_response :success
45 assert_response :success
@@ -40,16 +47,6 class CalendarsControllerTest < ActionController::TestCase
40 assert_not_nil assigns(:calendar)
47 assert_not_nil assigns(:calendar)
41 end
48 end
42
49
43 context "GET :show" do
44 should "run custom queries" do
45 @query = IssueQuery.create!(:name => 'Calendar', :is_public => true)
46
47 get :show, :query_id => @query.id
48 assert_response :success
49 end
50
51 end
52
53 def test_week_number_calculation
50 def test_week_number_calculation
54 Setting.start_of_week = 7
51 Setting.start_of_week = 7
55
52
General Comments 0
You need to be logged in to leave comments. Login now