end
test "browsing to an unauthorized page should render the base layout" do
- user = User.find(9)
- user.password, user.password_confirmation = 'test', 'test'
- user.save!
+ change_user_password('miscuser9', 'test')
log_user('miscuser9','test')
saved_settings.each {|k, v| Setting[k] = v}
end
+ def change_user_password(login, new_password)
+ user = User.first(:conditions => {:login => login})
+ user.password, user.password_confirmation = new_password, new_password
+ user.save!
+ end
+
def self.ldap_configured?
@test_ldap = Net::LDAP.new(:host => '127.0.0.1', :port => 389)
return @test_ldap.bind