diff test/functional/calendars_controller_test.rb @ 37:94944d00e43c

* Update to SVN trunk rev 4411
author Chris Cannam <chris.cannam@soundsoftware.ac.uk>
date Fri, 19 Nov 2010 13:24:41 +0000
parents 1d32c0a0efbf
children af80e5618e9b
line wrap: on
line diff
--- a/test/functional/calendars_controller_test.rb	Fri Sep 24 14:06:04 2010 +0100
+++ b/test/functional/calendars_controller_test.rb	Fri Nov 19 13:24:41 2010 +0000
@@ -16,6 +16,16 @@
     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