To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.

Statistics Download as Zip
| Branch: | Tag: | Revision:

root / test / functional / ldap_auth_sources_controller.rb @ 441:cbce1fd3b1b7

History | View | Annotate | Download (491 Bytes)

1
require 'test_helper'
2

    
3
class LdapAuthSourcesControllerTest < ActionController::TestCase
4
  fixtures :all
5

    
6
  def setup
7
    @request.session[:user_id] = 1
8
  end
9

    
10
  context "get :new" do
11
    setup do
12
      get :new
13
    end
14

    
15
    should_assign_to :auth_source
16
    should_respond_with :success
17
    should_render_template :new
18

    
19
    should "initilize a new AuthSource" do
20
      assert_equal AuthSourceLdap, assigns(:auth_source).class
21
      assert assigns(:auth_source).new_record?
22
    end
23
  end
24
end