Permalink
Browse files

add panel tests

  • Loading branch information...
1 parent f6ab488 commit 60c6ddf724635f438761f32172f5d7f9f368b53c @joshsusser committed May 31, 2008
Showing with 13 additions and 0 deletions.
  1. +13 −0 test/functional/admin/panel_controller_test.rb
@@ -1,5 +1,18 @@
require File.dirname(__FILE__) + '/../../test_helper'
class Admin::PanelControllerTest < ActionController::TestCase
+ scenario :blog
+ def test_should_authenticate
+ logout
+ get :index
+ assert_redirected_to login_url()
+ end
+
+ def test_should_show_panel
+ login_as :admin
+ get :index
+ assert_response :success
+ assert_template "index"
+ end
end

0 comments on commit 60c6ddf

Please sign in to comment.