Class: ContentPagesControllerTest
- Inherits:
-
Test::Unit::TestCase
- Object
- Test::Unit::TestCase
- ContentPagesControllerTest
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
#form_login, #form_logout, included, #login_user
Instance Method Details
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_page ⇒ Object
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
login_user('admin')
get :view, {:page_name => ['admin']}
assert_response :success
end
|
#test_get_public_page ⇒ Object
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
|