Sha256: 2aa04135c4aa5a88e0e2d0bba1f82b9074058fb1e43b2f446a4d4c577f06723e
Contents?: true
Size: 693 Bytes
Versions: 12
Compression:
Stored size: 693 Bytes
Contents
require 'test_helper' module Guts class ApplicationControllerTest < ActionController::TestCase setup do @controller = Guts::UsersController.new @routes = Engine.routes end test 'should look for layout_hook file from Rails app' do get :index assert_equal true, @response.body.include?('See you in the after') end test 'should redirect for logged in user not in admin groups' do log_in guts_users(:regular_user) get :index assert_redirected_to new_session_path end test 'should redirect for non logged in user' do log_out get :index assert_redirected_to new_session_path end end end
Version data entries
12 entries across 12 versions & 1 rubygems