Mercurial > hg > soundsoftware-site
comparison test/functional/.svn/text-base/ldap_auth_sources_controller.rb.svn-base @ 0:513646585e45
* Import Redmine trunk SVN rev 3859
author | Chris Cannam |
---|---|
date | Fri, 23 Jul 2010 15:52:44 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:513646585e45 |
---|---|
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 |