Sha256: 10da2977e43b93cef10ad89fd8f5a986abf72b6cefa6214ca15624ee86f6fd13

Contents?: true

Size: 777 Bytes

Versions: 46

Compression:

Stored size: 777 Bytes

Contents

require File.dirname(__FILE__) + '/../../test_helper'

class Admin::Muck::DefaultControllerTest < ActionController::TestCase

  tests Admin::DefaultController

  context "GET to admin index" do
    setup do
      @controller.stubs(:login_required).returns(true)
      @controller.stubs(:admin_access_required).returns(true)
      get :index
    end
    should_respond_with :success
    should_render_template :index
  end

  # TODO add tests to confirm admin UI access requires login and role 'administrator'
  # context "GET to admin index not logged in" do
  #   setup do
  #     @controller.stubs(:login_required).returns(false)
  #     @controller.stubs(:admin_access_required).returns(false)
  #     get :index
  #   end
  #   should_respond_with :redirect
  # end
  
end

Version data entries

46 entries across 46 versions & 1 rubygems

Version Path
muck-engine-0.2.26 test/rails_root/test/functional/admin/default_controller_test.rb
muck-engine-0.2.25 test/rails_root/test/functional/admin/default_controller_test.rb
muck-engine-0.2.24 test/rails_root/test/functional/admin/default_controller_test.rb
muck-engine-0.2.23 test/rails_root/test/functional/admin/default_controller_test.rb
muck-engine-0.2.22 test/rails_root/test/functional/admin/default_controller_test.rb
muck-engine-0.2.21 test/rails_root/test/functional/admin/default_controller_test.rb
muck-engine-0.2.20 test/rails_root/test/functional/admin/default_controller_test.rb
muck-engine-0.2.19 test/rails_root/test/functional/admin/default_controller_test.rb
muck-engine-0.2.18 test/rails_root/test/functional/admin/default_controller_test.rb
muck-engine-0.2.17 test/rails_root/test/functional/admin/default_controller_test.rb
muck-engine-0.2.16 test/rails_root/test/functional/admin/default_controller_test.rb
muck-engine-0.2.15 test/rails_root/test/functional/admin/default_controller_test.rb
muck-engine-0.2.13 test/rails_root/test/functional/admin/default_controller_test.rb
muck-engine-0.2.12 test/rails_root/test/functional/admin/default_controller_test.rb
muck-engine-0.2.11 test/rails_root/test/functional/admin/default_controller_test.rb
muck-engine-0.2.10 test/rails_root/test/functional/admin/default_controller_test.rb
muck-engine-0.2.9 test/rails_root/test/functional/admin/default_controller_test.rb
muck-engine-0.2.8 test/rails_root/test/functional/admin/default_controller_test.rb
muck-engine-0.2.7 test/rails_root/test/functional/admin/default_controller_test.rb
muck-engine-0.2.6 test/rails_root/test/functional/admin/default_controller_test.rb