Mercurial > hg > soundsoftware-site
annotate .svn/pristine/70/70b84ab9e3add639c1ef335fb9d7383dcdf7f5f5.svn-base @ 1519:afce8026aaeb redmine-2.4-integration
Merge from branch "live"
author | Chris Cannam |
---|---|
date | Tue, 09 Sep 2014 09:34:53 +0100 |
parents | cbb26bc654de |
children |
rev | line source |
---|---|
Chris@909 | 1 require File.expand_path('../../test_helper', __FILE__) |
Chris@909 | 2 |
Chris@909 | 3 class LdapAuthSourcesControllerTest < ActionController::TestCase |
Chris@909 | 4 |
Chris@909 | 5 def setup |
Chris@909 | 6 @request.session[:user_id] = 1 |
Chris@909 | 7 end |
Chris@909 | 8 |
Chris@909 | 9 context "get :new" do |
Chris@909 | 10 setup do |
Chris@909 | 11 get :new |
Chris@909 | 12 end |
Chris@909 | 13 |
Chris@909 | 14 should_assign_to :auth_source |
Chris@909 | 15 should_respond_with :success |
Chris@909 | 16 should_render_template :new |
Chris@909 | 17 |
Chris@909 | 18 should "initilize a new AuthSource" do |
Chris@909 | 19 assert_equal AuthSourceLdap, assigns(:auth_source).class |
Chris@909 | 20 assert assigns(:auth_source).new_record? |
Chris@909 | 21 end |
Chris@909 | 22 end |
Chris@909 | 23 end |