summaryrefslogtreecommitdiffstats
path: root/test/functional/calendars_controller_test.rb
diff options
context:
space:
mode:
authorEric Davis <edavis@littlestreamsoftware.com>2010-05-03 16:02:37 +0000
committerEric Davis <edavis@littlestreamsoftware.com>2010-05-03 16:02:37 +0000
commit36c82ecc1f0da922014c480930500896750b1e03 (patch)
treeaae1ce92979307cf1f98c340eee3b9794f0b3852 /test/functional/calendars_controller_test.rb
parent469ff0fb4e44f61c1bfdcbffb785f54d1f82035d (diff)
downloadredmine-36c82ecc1f0da922014c480930500896750b1e03.tar.gz
redmine-36c82ecc1f0da922014c480930500896750b1e03.zip
Refactor: move Project Calendar to it's own controller.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3732 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/calendars_controller_test.rb')
-rw-r--r--test/functional/calendars_controller_test.rb20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/functional/calendars_controller_test.rb b/test/functional/calendars_controller_test.rb
new file mode 100644
index 000000000..fa07fdd47
--- /dev/null
+++ b/test/functional/calendars_controller_test.rb
@@ -0,0 +1,20 @@
+require 'test_helper'
+
+class CalendarsControllerTest < ActionController::TestCase
+ fixtures :all
+
+ def test_calendar
+ get :show, :project_id => 1
+ assert_response :success
+ assert_template 'calendar'
+ assert_not_nil assigns(:calendar)
+ end
+
+ def test_cross_project_calendar
+ get :show
+ assert_response :success
+ assert_template 'calendar'
+ assert_not_nil assigns(:calendar)
+ end
+
+end