summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/functional/calendars_controller_test.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/functional/calendars_controller_test.rb b/test/functional/calendars_controller_test.rb
index ad047c669..3fb9ad1f0 100644
--- a/test/functional/calendars_controller_test.rb
+++ b/test/functional/calendars_controller_test.rb
@@ -16,6 +16,16 @@ class CalendarsControllerTest < ActionController::TestCase
assert_template 'calendar'
assert_not_nil assigns(:calendar)
end
+
+ context "GET :show" do
+ should "run custom queries" do
+ @query = Query.generate_default!
+
+ get :show, :query_id => @query.id
+ assert_response :success
+ end
+
+ end
def test_week_number_calculation
Setting.start_of_week = 7