Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

add panel tests

  • Loading branch information...
commit 60c6ddf724635f438761f32172f5d7f9f368b53c 1 parent f6ab488
Josh Susser authored

Showing 1 changed file with 13 additions and 0 deletions. Show diff stats Hide diff stats

  1. +13 0 test/functional/admin/panel_controller_test.rb
13 test/functional/admin/panel_controller_test.rb
... ... @@ -1,5 +1,18 @@
1 1 require File.dirname(__FILE__) + '/../../test_helper'
2 2
3 3 class Admin::PanelControllerTest < ActionController::TestCase
  4 + scenario :blog
4 5
  6 + def test_should_authenticate
  7 + logout
  8 + get :index
  9 + assert_redirected_to login_url()
  10 + end
  11 +
  12 + def test_should_show_panel
  13 + login_as :admin
  14 + get :index
  15 + assert_response :success
  16 + assert_template "index"
  17 + end
5 18 end

0 comments on commit 60c6ddf

Please sign in to comment.
Something went wrong with that request. Please try again.