This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def load_user_by_uid(uid) | |
if uid.blank? | |
logger.info t("logger.no_uid_present") | |
log_request_info | |
render :text => t("no_uid_present"), :status => 403 | |
return | |
end | |
logger.info t("logger.attempting_to_load_user", :uid => uid) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'factory_girl' | |
Factory.define :user do |u| | |
u.email { "#{u.user_name}xxxx@whatever.com"} | |
u.password 'changeme' | |
u.password_confirmation 'changeme' | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
undefined method `set_default_admin_uid' for class `User' | |
/home/david/trisano-ee/webapp/vendor/rails/activesupport/lib/active_support/core_ext/module/aliasing.rb:29:in `alias_method_chain' | |
/home/david/trisano-ee/webapp/vendor/plugins/trisano_auth/lib/trisano_auth/models/user.rb:32:in `included' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
..F....................................................................... | |
1) | |
'CdcExport weekly cdc export should not show a valid export event updated this year, if the mmwr year is more then one year old' FAILED | |
expected empty? to return true, got false | |
./spec/models/cdc_export_spec.rb:708: | |
Finished in 52.184624 seconds | |
74 examples, 1 failure |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe User, "Setting role memberships and entitlements via User attributes" do | |
fixtures :users, :role_memberships, :roles, :entities, :privileges, :privileges_roles, :entities, :places, :places_types | |
describe "on a new user" do | |
before(:each) do | |
@user = Factory.create(:user, :user_name => "Joe", :uid => "joe" ) | |
end | |
describe "assigning one admin role in the Southeastern District" do |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1) | |
ActionController::DoubleRenderError in 'DashboardController handling GET /dashboard with no logged in user should redirect to 500 error page' | |
Render and/or redirect were called multiple times in this action. Please note that you may only call render OR redirect, and at most once per action. Also note that neither redirect nor render terminate execution of the action, so if you want to exit an action after redirecting, you need to do something like "redirect_to(...) and return". | |
/home/david/trisano-ee/webapp/vendor/plugins/trisano_securitay/lib/trisano_securitay/controllers/application_controller.rb:16:in `load_user' | |
./spec/controllers/dashboard_controller_spec.rb:76: | |
2) | |
ActiveRecord::StatementInvalid in 'User task view settings#store_as_task_view_settings should reset to default settings w/ nil' | |
PGError: ERROR: null value in column "email" violates not-null constraint | |
: INSERT INTO "users" ("created_at", "single_access_token", "last_request_at", "crypted_password", "generational_qualifer", "updated_at", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@user = users(:default_user) | |
users(:admin_user).event_view_settings = {:diseases => true} | |
users(:admin_user).save | |
User.stub!(:current_user).and_return(@user) | |
event_queues(:enterics_queue).destroy |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rake | |
(in /home/david/trisano-ee/webapp) | |
/usr/bin/ruby1.8 -S rake spec:db:fixtures:load FIXTURES=codes,code_translations,external_codes,external_code_translations RAILS_ENV=test | |
(in /home/david/trisano-ee/webapp) | |
....................................*............*............................................................................................................................................................................................................................*...........................................................................................................................................F..............................................................*.........................................................................................................................................................................................................................................................................................................................FFF...................... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module TrisanoSecuritay | |
module Models | |
module User | |
reloadable! | |
hook! 'User' | |
class << self | |
def self.included(base) | |
base.acts_as_authentic do |c| | |
c.login_field = 'user_name' | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NameError in User sessionsController#new | |
uninitialized constant UserSessionsController::UserSession | |
RAILS_ROOT: /home/david/trisano-ee/webapp | |
Application Trace | Framework Trace | Full Trace | |
/home/david/trisano-ee/webapp/vendor/rails/activesupport/lib/active_support/dependencies.rb:105:in `const_missing' | |
/home/david/trisano-ee/webapp/vendor/plugins/trisano_securitay/app/controllers/user_sessions_controller.rb:8:in `new' | |
/home/david/trisano-ee/webapp/vendor/rails/actionpack/lib/action_controller/base.rb:1331:in `send' |