similar to: UserEngine and the test environment

Displaying 20 results from an estimated 1000 matches similar to: "UserEngine and the test environment"

2006 Jun 07
0
Adding ''author'' functionality to UserEngine / RBAC roles
I''m trying to add / extend the default UserEngine schema (Guest/User/Admin) to support author only Update/Delete functions. At the moment, I allow ''Guest'' to read/view all records, and User additionaly has access to create/edit/destroy, however this means that any registered user is able to modify any record. My first thought was to add another filter in the chain
2006 Aug 10
2
Authentication: UserEngine or own creation?
Hi all I''m coding a project that needs a lot of authentication stuff... e.g. I write sort of a profile area, where users can create their different profiles. So I need to check if a user has the right to browse the profiles, if he has the right to change them all (as an admin) or the ones that belong to him etc. etc. This needs quite some logic... Now I wonder whether to use the
2006 Jul 27
0
Should I be extending UserEngine for User Preferences?
Fairly high level question here. I''m using LoginEngine & UserEngine with success. My application needs to track user preferences, which includes some associations with my models. Should I be extending the UserEngine model(s) and adding my own attributes? This means adding a lot to a plugin, including extending controllers and views. Or should I be creating my own
2006 Apr 28
0
UserEngine + User Profiles
[Cross Posted in Rails Engines] I''m taking a new approach to how I view user data, I think in the end it will be faster for the system anyways... What I''m doing is using LoginEngine/UserEngine combo on my site for authorization, and I want each user to have a profile that they edit and maintain. Each user would have 1 profile. My question is getting my profile and my user
2006 Jan 23
2
UserEngine -- Permission.synchronize_with_controllers -- trouble with my own controller modules
I suspect there''s an easier version of this question that I could ask, but I''m not sure where I''m going wrong. I have LoginEngine and UserEngine setup and seemingly running fine. However, not all of my controllers are being found when I run "rake sync_permissions". Specifically, it''s the controllers that are not in the base controllers folder, but
2006 May 16
3
UserEngine and hiding controllers
I''m using LoginEngine + UserEngine for web application. 1. I have some controllers under and admin subdirectory (Admin::PostController etc). The auto-fill permission in UserEngine does not work correctly with those controllers. Right at the moment this is not a problem, since I kind like having the Admin section separated and available only for god users. However, I could use
2005 Dec 14
2
[UserEngine] Configuring minimal access without logins
Hi, I''m playing around with the UserEngine for limiting access to my app and I like what I see so far. One question, however, I''d like to be able to set it up so that any user navigating to the site is automatically set as "anonymous" or some such access level with minimal permissions, without having to login. IOW, the login function should only be used by
2006 May 30
0
UserEngine / LoginEngine + file upload
I''m trying to setup loginengine/userengine for my site, and I''ve added one extra field to the ''user'' table, which is supposed to store the filename of the user''s picture. Now, I have upload_progress/file_column working on other parts of my site, but when I try to submit a multipart from within user/edit controller I get the following error message
2005 Dec 02
8
UserEngine: stack level too deep
Hi, I''m trying to get the UserEngine running. I have installed the LoginEngine, added the essential lines to environment.rb / application.rb and application_helper.rb. Worked fine. Then I did the same with the UserEngine and when trying to set up the db: rake engine_migrate ENGINE=user I get: Migrating engine ''user_engine'' rake aborted! stack level too deep But...
2009 May 18
0
[PATCH server] fixed functional tests after recent controller refactoring and managed node controller fixes.
Signed-off-by: Scott Seago <sseago at redhat.com> --- src/test/functional/host_controller_test.rb | 41 -------------------- .../functional/managed_node_configuration_test.rb | 14 ++++--- src/test/functional/nic_controller_test.rb | 8 ---- src/test/functional/permission_controller_test.rb | 15 ++++--- src/test/functional/quota_controller_test.rb | 2 +-
2006 Jan 19
4
UserEngine - rake bootstrap aborted => undefined method `synchronize_with_controllers'' for Permission:Class
Good day all. I have successfully installed Engines and LoginEngine and LE is setup and running correctly. However, after installing and setting up UE, when attempting to run the rake bootstrap method I get the following error: undefined method `synchronize_with_controllers'' for Permission:Class My environment is Rails 1.0.0 Ruby 1.8.2 WinXP WebBRICK MySQL 4.1.14 I found the following
2005 Dec 09
7
UserEngine - rake bootstrap aborted
Hi there, I''ve just installed login_engine and user_engine from the repositories, followed the setup procedures as documented in: vendor/plugins/user_engine/README But I''m getting the following failure: vince@vaio:~/Projects/Booking$ rake bootstrap (in /home/vince/Projects/Booking) rake aborted! undefined method `edit'' for class `UserController''
2006 Apr 28
0
UserEngine + Profiles
Skipped content of type multipart/alternative-------------- next part -------------- A non-text attachment was scrubbed... Name: PGP.sig Type: application/pgp-signature Size: 447 bytes Desc: This is a digitally signed message part Url : http://wrath.rubyonrails.org/pipermail/rails/attachments/20060428/8bcf7eb4/PGP-0001.bin
2006 Feb 08
1
testing with loginengine and userengine
Hi all, My unit tests and functional tests are failing because my tests aren''t authenticated. I''m using using user engine and login engine. How can I fake authentication to make my tests work properly. Thanks, Jason Edgecombe
2006 Jun 02
6
overriding constants
Hi there, I''m trying to override the defaults for form_helper. I can see in action_view/helpers/form_helper.rb: class InstanceTag #:nodoc: include Helpers::TagHelper attr_reader :method_name, :object_name DEFAULT_FIELD_OPTIONS = { "size" => 30 }.freeze unless const_defined?(:DEFAULT_FIELD_OPTIONS) DEFAULT_RADIO_OPTIONS = { }.freeze
2008 Jan 12
0
Can't test application controller methods in functional tests?
I have two methods in application controller that I want to test from ForumController: ----------------------- class ApplicationController < ActionController::Base ... def logout session[:username] = nil session[:admin] = nil redirect_to(request.request_uri) end ... def home redirect_to(:controller => ''forum'', :action =>
2006 Feb 15
3
UserEngine testing
Hi Everybody, I''m playing around with the engines created by James Adam and I bumped into the following. I would like the rake bootstrap command to use the testing database and I just know there''s an easy way to do so. I could have just copied the dev db''s to the test db''s but I think I''m missing something fundamental here. Hints are very welcome.
2006 Sep 26
0
some help with functional testing of nested routes
I have the following functional test in test/functional for testing my products_controller: require File.dirname(__FILE__) + ''/../test_helper'' require ''products_controller'' # Re-raise errors caught by the controller. class ProductsController def rescue_action(e) raise e end end class ProductsControllerTest < Test::Unit::TestCase fixtures
2007 Jan 26
0
Problems with assert_select in integration tests
I''ve been battling with assert_select in my integration tests for several evenings now. I''m testing a multi-step form, and after submitting the first step, my assert_selects fail on the attempts to find the form on the next page. However if I print out the response object, it has the exact text of what I''m trying to match. Here is the complete integration test. The
2007 Mar 28
3
attachment_fu Not Resizing
Hello, Recently attachment_fu stopped resizing images for me. I''m puzzled because before today it was resizing them and I don''t know what''s changed. Here''s my code: class Product < ActiveRecord::Base has_attachment :content_type => :image, :storage => :file_system, :max_size => 18.megabytes,