Mercurial > hg > soundsoftware-site
annotate test/functional/ldap_auth_sources_controller.rb @ 1173:5d3fb66f9ae4 bug_371
Close obsolete branch bug_371
author | Chris Cannam |
---|---|
date | Fri, 03 Feb 2012 15:02:13 +0000 |
parents | 513646585e45 |
children | cbb26bc654de |
rev | line source |
---|---|
Chris@0 | 1 require 'test_helper' |
Chris@0 | 2 |
Chris@0 | 3 class LdapAuthSourcesControllerTest < ActionController::TestCase |
Chris@0 | 4 fixtures :all |
Chris@0 | 5 |
Chris@0 | 6 def setup |
Chris@0 | 7 @request.session[:user_id] = 1 |
Chris@0 | 8 end |
Chris@0 | 9 |
Chris@0 | 10 context "get :new" do |
Chris@0 | 11 setup do |
Chris@0 | 12 get :new |
Chris@0 | 13 end |
Chris@0 | 14 |
Chris@0 | 15 should_assign_to :auth_source |
Chris@0 | 16 should_respond_with :success |
Chris@0 | 17 should_render_template :new |
Chris@0 | 18 |
Chris@0 | 19 should "initilize a new AuthSource" do |
Chris@0 | 20 assert_equal AuthSourceLdap, assigns(:auth_source).class |
Chris@0 | 21 assert assigns(:auth_source).new_record? |
Chris@0 | 22 end |
Chris@0 | 23 end |
Chris@0 | 24 end |