Class: ContentPagesControllerTest

Inherits:
Test::Unit::TestCase
  • Object
show all
Includes:
Goldberg::TestHelper
Defined in:
lib/six-updater-web/vendor/plugins/goldberg/test/functional/content_pages_controller_test.rb

Instance Method Summary collapse

Methods included from Goldberg::TestHelper

#form_login, #form_logout, included, #login_user

Instance Method Details

#setupObject



11
12
13
14
15
# File 'lib/six-updater-web/vendor/plugins/goldberg/test/functional/content_pages_controller_test.rb', line 11

def setup
  @controller = Goldberg::ContentPagesController.new
  @request    = ActionController::TestRequest.new
  @response   = ActionController::TestResponse.new
end

#test_get_admin_pageObject



22
23
24
25
26
27
28
29
# File 'lib/six-updater-web/vendor/plugins/goldberg/test/functional/content_pages_controller_test.rb', line 22

def test_get_admin_page
  get :view, {:page_name => ['admin']}
  assert_response :redirect

  ('admin')
  get :view, {:page_name => ['admin']}
  assert_response :success
end

#test_get_public_pageObject



17
18
19
20
# File 'lib/six-updater-web/vendor/plugins/goldberg/test/functional/content_pages_controller_test.rb', line 17

def test_get_public_page
  get :view, :page_name => ['home']
  assert_response :success
end