Skip to content

Instantly share code, notes, and snippets.

master > spec spec/libs/app_settings_spec.rb
No server is running
Running specs locally:
loading test environment
/Users/npaessel/lab/ruby/rigse/lib/app_settings.rb:16:in `symbolize_app_settings': undefined method `recursive_symbolize_keys' for ["2", "3", "4"]:Array (NoMethodError)
from /Users/npaessel/lab/ruby/rigse/lib/app_settings.rb:16:in `each'
from /Users/npaessel/lab/ruby/rigse/lib/app_settings.rb:16:in `symbolize_app_settings'
from /Users/npaessel/lab/ruby/rigse/lib/app_settings.rb:11:in `load_all_app_settings'
from /Users/npaessel/lab/ruby/rigse/lib/app_settings.rb:7:in `load_app_settings'
from /Users/npaessel/lab/ruby/rigse/config/initializers/01_load_config.rb:2
<Directory /web/staging/has/current/public/resources>
Options Indexes FollowSymLinks -MultiViews
AllowOverride all
Order allow,deny
allow from all
PassengerEnabled off
</Directory>
<Directory /web/staging/has/current/public>
Options Indexes FollowSymLinks -MultiViews
AllowOverride all
Order allow,deny
allow from all
</Directory>
<Directory /web/staging/has/current/public/resources>
Options Indexes FollowSymLinks -MultiViews
AllowOverride all
2)
ActionView::TemplateError in 'Embeddable::SoundGraphersController GET index runs without error'
Mock "User_1104" received unexpected message :has_role? with ("admin", "manager", "teacher", "researcher", "author", "member")
On line #83 of app/views/layouts/application.html.haml
80: %li#pop_out_link{:style => "display: none;"}= link_to "pop-out", '', :target=>'new'
81: %li.trail= link_to 'Home', home_path
82: %li.trail= link_to 'About', about_path
83: - if current_user.has_role?('admin', 'manager', 'teacher', 'researcher', 'author', 'member')
84: %li.trail=link_to(top_level_container_name.humanize.pluralize, investigations_path)
def contains_active_model(model_object)
m = []
if collectdata_model_active && model == model_object then m << model end
if collectdata2_model_active && second_model == model_object then m << second_model end
if (collectdata3_model_active && third_model) then m << third_model.model_type.name end
if (further_model_active && fourth_model) then m << fourth_model.model_type.name end
m.length > 0
end
Processing HomeController#index (for 72.93.105.205 at 2010-06-18 10:30:48) [GET]
Parameters: {"action"=>"index", "controller"=>"home"}
Rendering template within layouts/application
Rendering home/index
ActionView::TemplateError (undefined method `capitalize' for nil:NilClass) on line #5 of app/views/portal/students/_show.html.haml:
2: Select a #{APP_CONFIG[:theme].upcase} #{APP_CONFIG[:top_level_container_name].capitalize} to run from the list below:
3: = render :partial => 'portal/clazzes/list_for_student', :locals => { :portal_student => portal_student }
4:
5: %p
Processing Portal::StudentsController#signup (for 98.229.241.142 at 2010-06-21 13:07:32) [POST]
Parameters: {"action"=>"signup", "controller"=>"portal/students"}
Rendering template within layouts/application
Rendering portal/students/signup
Completed in 58ms (View: 29, DB: 4) | 200 OK [http://xproject.dev.concord.org/portal/students/signup]
Processing Portal::StudentsController#create (for 98.229.241.142 at 2010-06-21 13:08:01) [POST]
Parameters: {"user"=>{"password_confirmation"=>"[FILTERED]", "first_name"=>"teacher2", "password"=>"[FILTERED]", "last_name"=>"knowuh2"}, "commit"=>"Submit", "clazz"=>{"class_word"=>"testclass"}, "action"=>"create", "controller"=>"portal/students", "security_questions"=>{"question1"=>{"answer"=>"red", "question_idx"=>"1", "id"=>""}, "question2"=>{"answer"=>"red", "question_idx"=>"2", "id"=>""}, "question0"=>{"answer"=>"red", "question_idx"=>"0", "id"=>""}}}
Rendering template within layouts/application
Processing Portal::StudentsController#signup (for 98.229.241.142 at 2010-06-21 13:07:32) [POST]
Parameters: {"action"=>"signup", "controller"=>"portal/students"}
Rendering template within layouts/application
Rendering portal/students/signup
Completed in 58ms (View: 29, DB: 4) | 200 OK [http://xproject.dev.concord.org/portal/students/signup]
Processing Portal::StudentsController#create (for 98.229.241.142 at 2010-06-21 13:08:01) [POST]
Parameters: {"user"=>{"password_confirmation"=>"[FILTERED]", "first_name"=>"teacher2", "password"=>"[FILTERED]", "last_name"=>"knowuh2"}, "commit"=>"Submit", "clazz"=>{"class_word"=>"testclass"}, "action"=>"create", "controller"=>"portal/students", "security_questions"=>{"question1"=>{"answer"=>"red", "question_idx"=>"1", "id"=>""}, "question2"=>{"answer"=>"red", "question_idx"=>"2", "id"=>""}, "question0"=>{"answer"=>"red", "question_idx"=>"0", "id"=>""}}}
Rendering template within layouts/application
Processing Portal::StudentsController#create (for 98.229.241.142 at 2010-06-21 13:11:26) [POST]
Parameters: {"user"=>{"password_confirmation"=>"[FILTERED]", "first_name"=>"stud", "password"=>"[FILTERED]", "last_name"=>"knowuh3"}, "commit"=>"Submit", "clazz"=>{"class_word"=>"two"}, "action"=>"create", "controller"=>"portal/students", "security_questions"=>{"question1"=>{"answer"=>"red", "question_idx"=>"1", "id"=>""}, "question2"=>{"answer"=>"red", "id"=>""}, "question0"=>{"answer"=>"red", "question_idx"=>"0", "id"=>""}}}
Rendering template within layouts/application
Rendering portal/students/signup
Completed in 75ms (View: 31, DB: 6) | 200 OK [http://xproject.dev.concord.org/portal/students]
Processing Portal::StudentsController#create (for 98.229.241.142 at 2010-06-21 13:11:37) [POST]
Parameters: {"user"=>{"password_confirmation"=>"[FILTERED]", "first_name"=>"stud", "password"=>"[FILTERED]", "last_name"=>"knowuh3"}, "commit"=>"Submit", "clazz"=>{"class_word"=>""}, "action"=>"create", "controller"=>"por
Processing Portal::StudentsController#signup (for 98.229.241.142 at 2010-06-21 13:12:50) [POST]
Parameters: {"action"=>"signup", "controller"=>"portal/students"}
Rendering template within layouts/application
Rendering portal/students/signup
Completed in 96ms (View: 44, DB: 4) | 200 OK [http://xproject.dev.concord.org/portal/students/signup]
Processing Portal::StudentsController#create (for 98.229.241.142 at 2010-06-21 13:13:15) [POST]
Parameters: {"user"=>{"password_confirmation"=>"[FILTERED]", "first_name"=>"ada", "password"=>"[FILTERED]", "last_name"=>"paessel"}, "commit"=>"Submit", "clazz"=>{"class_word"=>"two"}, "action"=>"create", "controller"=>"portal/students", "security_questions"=>{"question1"=>{"answer"=>"red", "question_idx"=>"1", "id"=>""}, "question2"=>{"answer"=>"red", "question_idx"=>"2", "id"=>""}, "question0"=>{"answer"=>"red", "question_idx"=>"0", "id"=>""}}}
Rendering template within layouts/application