Sha256: 875aef4c2d7e066be0a21f827e9e01cc755cd33b2b26e899e169a691bb3bef3d

Contents?: true

Size: 758 Bytes

Versions: 70

Compression:

Stored size: 758 Bytes

Contents

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

class Admin::Muck::OaiEndpointsControllerTest < ActionController::TestCase

  tests Admin::Muck::OaiEndpointsController

  context "admin oai endpoints controller" do
    
    should_require_login :index => :get, :login_url => '/login'
    
    context "logged in as admin" do
      setup do
        @admin = Factory(:user)
        @admin_role = Factory(:role, :rolename => 'administrator')
        @admin.roles << @admin_role
        activate_authlogic
        login_as @admin
      end
      context "GET index" do
        setup do
          get :index
        end
        should_not_set_the_flash
        should_respond_with :success
        should_render_template :index
      end
    end
  end

end

Version data entries

70 entries across 70 versions & 2 rubygems

Version Path
muck-services-0.1.6 test/rails_root/test/functional/admin/oai_endpoints_controller_test.rb
muck-services-0.1.5 test/rails_root/test/functional/admin/oai_endpoints_controller_test.rb
muck-services-0.1.4 test/rails_root/test/functional/admin/oai_endpoints_controller_test.rb
muck-services-0.1.3 test/rails_root/test/functional/admin/oai_endpoints_controller_test.rb
muck-services-0.1.2 test/rails_root/test/functional/admin/oai_endpoints_controller_test.rb
muck-raker-0.2.11 test/rails_root/test/functional/admin/oai_endpoints_controller_test.rb
muck-raker-0.2.10 test/rails_root/test/functional/admin/oai_endpoints_controller_test.rb
muck-raker-0.2.9 test/rails_root/test/functional/admin/oai_endpoints_controller_test.rb
muck-raker-0.2.8 test/rails_root/test/functional/admin/oai_endpoints_controller_test.rb
muck-raker-0.2.7 test/rails_root/test/functional/admin/oai_endpoints_controller_test.rb
muck-raker-0.2.6 test/rails_root/test/functional/admin/oai_endpoints_controller_test.rb
muck-raker-0.2.5 test/rails_root/test/functional/admin/oai_endpoints_controller_test.rb
muck-raker-0.2.4 test/rails_root/test/functional/admin/oai_endpoints_controller_test.rb
muck-raker-0.2.3 test/rails_root/test/functional/admin/oai_endpoints_controller_test.rb
muck-raker-0.2.2 test/rails_root/test/functional/admin/oai_endpoints_controller_test.rb
muck-raker-0.2.0 test/rails_root/test/functional/admin/oai_endpoints_controller_test.rb
muck-raker-0.1.49 test/rails_root/test/functional/admin/oai_endpoints_controller_test.rb
muck-raker-0.1.48 test/rails_root/test/functional/admin/oai_endpoints_controller_test.rb
muck-raker-0.1.47 test/rails_root/test/functional/admin/oai_endpoints_controller_test.rb
muck-raker-0.1.46 test/rails_root/test/functional/admin/oai_endpoints_controller_test.rb