late.rb:135:in `block in render' # C:/Ruby192/lib/ruby/gems/1.9.1/gems/activesupport-3.0.9/lib/active_suppor t/notifications.rb:52:in `block in instrument' # C:/Ruby192/lib/ruby/gems/1.9.1/gems/activesupport-3.0.9/lib/active_suppor t/notifications/instrumenter.rb:21:in `instrument' # C:/Ruby192/lib/ruby/gems/1.9.1/gems/activesupport-3.0.9/lib/active_suppor t/notifications.rb:52:in `instrument' # C:/Ruby192/lib/ruby/gems/1.9.1/gems/actionpack-3.0.9/lib/action_view/temp late.rb:127:in `render' # C:/Ruby192/lib/ruby/gems/1.9.1/gems/actionpack-3.0.9/lib/action_view/rend er/rendering.rb:59:in `block in _render_template' # C:/Ruby192/lib/ruby/gems/1.9.1/gems/activesupport-3.0.9/lib/active_suppor t/notifications.rb:52:in `block in instrument' # C:/Ruby192/lib/ruby/gems/1.9.1/gems/activesupport-3.0.9/lib/active_suppor t/notifications/instrumenter.rb:21:in `instrument' # C:/Ruby192/lib/ruby/gems/1.9.1/gems/activesupport-3.0.9/lib/active_suppor t/notifications.rb:52:in `instrument' # C:/Ruby192/lib/ruby/gems/1.9.1/gems/actionpack-3.0.9/lib/action_view/rend er/rendering.rb:56:in `_render_template' # C:/Ruby192/lib/ruby/gems/1.9.1/gems/actionpack-3.0.9/lib/action_view/rend er/rendering.rb:26:in `render' # C:/Ruby192/lib/ruby/gems/1.9.1/gems/actionpack-3.0.9/lib/action_view/test _case.rb:107:in `render' # ./spec/views/user_msts/edit.html.erb_spec.rb:18:in `block (2 levels) in < top (required)>' # C:/Ruby192/lib/ruby/gems/1.9.1/gems/rspec-core-2.6.4/lib/rspec/core/examp le.rb:48:in `instance_eval' # C:/Ruby192/lib/ruby/gems/1.9.1/gems/rspec-core-2.6.4/lib/rspec/core/examp le.rb:48:in `block in run' # C:/Ruby192/lib/ruby/gems/1.9.1/gems/rspec-core-2.6.4/lib/rspec/core/examp le.rb:107:in `with_around_hooks' # C:/Ruby192/lib/ruby/gems/1.9.1/gems/rspec-core-2.6.4/lib/rspec/core/examp le.rb:45:in `run' # C:/Ruby192/lib/ruby/gems/1.9.1/gems/rspec-core-2.6.4/lib/rspec/core/examp le_group.rb:294:in `block in run_examples' # C:/Ruby192/lib/ruby/gems/1.9.1/gems/rspec-core-2.6.4/lib/rspec/core/examp le_group.rb:290:in `map' # C:/Ruby192/lib/ruby/gems/1.9.1/gems/rspec-core-2.6.4/lib/rspec/core/examp le_group.rb:290:in `run_examples' # C:/Ruby192/lib/ruby/gems/1.9.1/gems/rspec-core-2.6.4/lib/rspec/core/examp le_group.rb:262:in `run' # C:/Ruby192/lib/ruby/gems/1.9.1/gems/rspec-core-2.6.4/lib/rspec/core/comma nd_line.rb:24:in `block (2 levels) in run' # C:/Ruby192/lib/ruby/gems/1.9.1/gems/rspec-core-2.6.4/lib/rspec/core/comma nd_line.rb:24:in `map' # C:/Ruby192/lib/ruby/gems/1.9.1/gems/rspec-core-2.6.4/lib/rspec/core/comma nd_line.rb:24:in `block in run' # C:/Ruby192/lib/ruby/gems/1.9.1/gems/rspec-core-2.6.4/lib/rspec/core/repor ter.rb:12:in `report' # C:/Ruby192/lib/ruby/gems/1.9.1/gems/rspec-core-2.6.4/lib/rspec/core/comma nd_line.rb:21:in `run' # C:/Ruby192/lib/ruby/gems/1.9.1/gems/rspec-core-2.6.4/lib/rspec/core/runne r.rb:80:in `run_in_process' # C:/Ruby192/lib/ruby/gems/1.9.1/gems/rspec-core-2.6.4/lib/rspec/core/runne r.rb:69:in `run' # C:/Ruby192/lib/ruby/gems/1.9.1/gems/rspec-core-2.6.4/lib/rspec/core/runne r.rb:11:in `block in autorun'
61) user_msts/new.html.erb renders new user_mst form Failure/Error: render ActionView::Template::Error: You have a nil object when you didn't expect it! You might have expected an instance of Array. The error occurred while evaluating nil.collect # ./app/views/user_msts/_form.html.erb:44:in `block in _app_views_user_msts __form_html_erb___538349295_19272408__225149480' # C:/Ruby192/lib/ruby/gems/1.9.1/gems/actionpack-3.0.9/lib/action_view/help ers/capture_helper.rb:40:in `block in capture' # C:/Ruby192/lib/ruby/gems/1.9.1/gems/actionpack-3.0.9/lib/action_view/help ers/capture_helper.rb:172:in `with_output_buffer' # C:/Ruby192/lib/ruby/gems/1.9.1/gems/actionpack-3.0.9/lib/action_view/help ers/capture_helper.rb:40:in `capture' # C:/Ruby192/lib/ruby/gems/1.9.1/gems/actionpack-3.0.9/lib/action_view/help ers/form_helper.rb:545:in `fields_for' # C:/Ruby192/lib/ruby/gems/1.9.1/gems/actionpack-3.0.9/lib/action_view/help ers/form_helper.rb:320:in `form_for' # ./app/views/user_msts/_form.html.erb:1:in `_app_views_user_msts__form_htm l_erb___538349295_19272408__225149480' # C:/Ruby192/lib/ruby/gems/1.9.1/gems/actionpack-3.0.9/lib/action_view/temp late.rb:135:in `block in render' # C:/Ruby192/lib/ruby/gems/1.9.1/gems/activesupport-3.0.9/lib/active_suppor t/notifications.rb:52:in `block in instrument' # C:/Ruby192/lib/ruby/gems/1.9.1/gems/activesupport-3.0.9/lib/active_suppor t/notifications/instrumenter.rb:21:in `instrument' # C:/Ruby192/lib/ruby/gems/1.9.1/gems/activesupport-3.0.9/lib/active_suppor t/notifications.rb:52:in `instrument' # C:/Ruby192/lib/ruby/gems/1.9.1/gems/actionpack-3.0.9/lib/action_view/temp late.rb:127:in `render' # C:/Ruby192/lib/ruby/gems/1.9.1/gems/actionpack-3.0.9/lib/action_view/rend er/partials.rb:333:in `render_partial' # C:/Ruby192/lib/ruby/gems/1.9.1/gems/actionpack-3.0.9/lib/action_view/rend er/partials.rb:262:in `block in render' # C:/Ruby192/lib/ruby/gems/1.9.1/gems/activesupport-3.0.9/lib/active_suppor t/notifications.rb:52:in `block in instrument' # C:/Ruby192/lib/ruby/gems/1.9.1/gems/activesupport-3.0.9/lib/active_suppor t/notifications/instrumenter.rb:21:in `instrument' # C:/Ruby192/lib/ruby/gems/1.9.1/gems/activesupport-3.0.9/lib/active_suppor t/notifications.rb:52:in `instrument' # C:/Ruby192/lib/ruby/gems/1.9.1/gems/actionpack-3.0.9/lib/action_view/rend er/partials.rb:260:in `render' # C:/Ruby192/lib/ruby/gems/1.9.1/gems/actionpack-3.0.9/lib/action_view/rend er/partials.rb:378:in `_render_partial' # C:/Ruby192/lib/ruby/gems/1.9.1/gems/actionpack-3.0.9/lib/action_view/test _case.rb:149:in `_render_partial' # C:/Ruby192/lib/ruby/gems/1.9.1/gems/actionpack-3.0.9/lib/action_view/rend er/rendering.rb:31:in `render' # ./app/views/user_msts/new.html.erb:3:in `_app_views_user_msts_new_html_er b___181673372_23615748__547813886' # C:/Ruby192/lib/ruby/gems/1.9.1/gems/actionpack-3.0.9/lib/action_view/temp late.rb:135:in `block in render' # C:/Ruby192/lib/ruby/gems/1.9.1/gems/activesupport-3.0.9/lib/active_suppor t/notifications.rb:52:in `block in instrument' # C:/Ruby192/lib/ruby/gems/1.9.1/gems/activesupport-3.0.9/lib/active_suppor t/notifications/instrumenter.rb:21:in `instrument' # C:/Ruby192/lib/ruby/gems/1.9.1/gems/activesupport-3.0.9/lib/active_suppor t/notifications.rb:52:in `instrument' # C:/Ruby192/lib/ruby/gems/1.9.1/gems/actionpack-3.0.9/lib/action_view/temp late.rb:127:in `render' # C:/Ruby192/lib/ruby/gems/1.9.1/gems/actionpack-3.0.9/lib/action_view/rend er/rendering.rb:59:in `block in _render_template' # C:/Ruby192/lib/ruby/gems/1.9.1/gems/activesupport-3.0.9/lib/active_suppor t/notifications.rb:52:in `block in instrument' # C:/Ruby192/lib/ruby/gems/1.9.1/gems/activesupport-3.0.9/lib/active_suppor t/notifications/instrumenter.rb:21:in `instrument' # C:/Ruby192/lib/ruby/gems/1.9.1/gems/activesupport-3.0.9/lib/active_suppor t/notifications.rb:52:in `instrument' # C:/Ruby192/lib/ruby/gems/1.9.1/gems/actionpack-3.0.9/lib/action_view/rend er/rendering.rb:56:in `_render_template' # C:/Ruby192/lib/ruby/gems/1.9.1/gems/actionpack-3.0.9/lib/action_view/rend er/rendering.rb:26:in `render' # C:/Ruby192/lib/ruby/gems/1.9.1/gems/actionpack-3.0.9/lib/action_view/test _case.rb:107:in `render' # ./spec/views/user_msts/new.html.erb_spec.rb:18:in `block (2 levels) in <t op (required)>' # C:/Ruby192/lib/ruby/gems/1.9.1/gems/rspec-core-2.6.4/lib/rspec/core/examp le.rb:48:in `instance_eval' # C:/Ruby192/lib/ruby/gems/1.9.1/gems/rspec-core-2.6.4/lib/rspec/core/examp le.rb:48:in `block in run' # C:/Ruby192/lib/ruby/gems/1.9.1/gems/rspec-core-2.6.4/lib/rspec/core/examp le.rb:107:in `with_around_hooks' # C:/Ruby192/lib/ruby/gems/1.9.1/gems/rspec-core-2.6.4/lib/rspec/core/examp le.rb:45:in `run' # C:/Ruby192/lib/ruby/gems/1.9.1/gems/rspec-core-2.6.4/lib/rspec/core/examp le_group.rb:294:in `block in run_examples' # C:/Ruby192/lib/ruby/gems/1.9.1/gems/rspec-core-2.6.4/lib/rspec/core/examp le_group.rb:290:in `map' # C:/Ruby192/lib/ruby/gems/1.9.1/gems/rspec-core-2.6.4/lib/rspec/core/examp le_group.rb:290:in `run_examples' # C:/Ruby192/lib/ruby/gems/1.9.1/gems/rspec-core-2.6.4/lib/rspec/core/examp le_group.rb:262:in `run' # C:/Ruby192/lib/ruby/gems/1.9.1/gems/rspec-core-2.6.4/lib/rspec/core/comma nd_line.rb:24:in `block (2 levels) in run' # C:/Ruby192/lib/ruby/gems/1.9.1/gems/rspec-core-2.6.4/lib/rspec/core/comma nd_line.rb:24:in `map' # C:/Ruby192/lib/ruby/gems/1.9.1/gems/rspec-core-2.6.4/lib/rspec/core/comma nd_line.rb:24:in `block in run' # C:/Ruby192/lib/ruby/gems/1.9.1/gems/rspec-core-2.6.4/lib/rspec/core/repor ter.rb:12:in `report' # C:/Ruby192/lib/ruby/gems/1.9.1/gems/rspec-core-2.6.4/lib/rspec/core/comma nd_line.rb:21:in `run' # C:/Ruby192/lib/ruby/gems/1.9.1/gems/rspec-core-2.6.4/lib/rspec/core/runne r.rb:80:in `run_in_process' # C:/Ruby192/lib/ruby/gems/1.9.1/gems/rspec-core-2.6.4/lib/rspec/core/runne r.rb:69:in `run' # C:/Ruby192/lib/ruby/gems/1.9.1/gems/rspec-core-2.6.4/lib/rspec/core/runne r.rb:11:in `block in autorun' Finished in 11.22 seconds 173 examples, 61 failures, 5 pending Failed examples: rspec ./spec/controllers/branch_msts_controller_spec.rb:31 # BranchMstsControlle r GET index assigns all branch_msts as @branch_msts rspec ./spec/controllers/branch_msts_controller_spec.rb:39 # BranchMstsControlle r GET show assigns the requested branch_mst as @branch_mst rspec ./spec/controllers/branch_msts_controller_spec.rb:54 # BranchMstsControlle r GET edit assigns the requested branch_mst as @branch_mst rspec ./spec/controllers/branch_msts_controller_spec.rb:63 # BranchMstsControlle r POST create with valid params creates a new BranchMst rspec ./spec/controllers/branch_msts_controller_spec.rb:69 # BranchMstsControlle r POST create with valid params assigns a newly created branch_mst as @branch_ms t rspec ./spec/controllers/branch_msts_controller_spec.rb:75 # BranchMstsControlle r POST create with valid params redirects to the created branch_mst rspec ./spec/controllers/branch_msts_controller_spec.rb:100 # BranchMstsControll er PUT update with valid params updates the requested branch_mst rspec ./spec/controllers/branch_msts_controller_spec.rb:110 # BranchMstsControll er PUT update with valid params assigns the requested branch_mst as @branch_mst rspec ./spec/controllers/branch_msts_controller_spec.rb:116 # BranchMstsControll er PUT update with valid params redirects to the branch_mst rspec ./spec/controllers/branch_msts_controller_spec.rb:124 # BranchMstsControll er PUT update with invalid params assigns the branch_mst as @branch_mst rspec ./spec/controllers/branch_msts_controller_spec.rb:132 # BranchMstsControll er PUT update with invalid params re-renders the 'edit' template rspec ./spec/controllers/branch_msts_controller_spec.rb:143 # BranchMstsControll er DELETE destroy destroys the requested branch_mst rspec ./spec/controllers/branch_msts_controller_spec.rb:150 # BranchMstsControll er DELETE destroy redirects to the branch_msts list rspec ./spec/controllers/department_msts_controller_spec.rb:31 # DepartmentMstsC ontroller GET index assigns all department_msts as @department_msts rspec ./spec/controllers/department_msts_controller_spec.rb:39 # DepartmentMstsC ontroller GET show assigns the requested department_mst as @department_mst rspec ./spec/controllers/department_msts_controller_spec.rb:54 # DepartmentMstsC ontroller GET edit assigns the requested department_mst as @department_mst rspec ./spec/controllers/department_msts_controller_spec.rb:63 # DepartmentMstsC ontroller POST create with valid params creates a new DepartmentMst rspec ./spec/controllers/department_msts_controller_spec.rb:69 # DepartmentMstsC ontroller POST create with valid params assigns a newly created department_mst a s @department_mst rspec ./spec/controllers/department_msts_controller_spec.rb:75 # DepartmentMstsC ontroller POST create with valid params redirects to the created department_mst rspec ./spec/controllers/department_msts_controller_spec.rb:100 # DepartmentMsts Controller PUT update with valid params updates the requested department_mst rspec ./spec/controllers/department_msts_controller_spec.rb:110 # DepartmentMsts Controller PUT update with valid params assigns the requested department_mst as @department_mst rspec ./spec/controllers/department_msts_controller_spec.rb:116 # DepartmentMsts Controller PUT update with valid params redirects to the department_mst rspec ./spec/controllers/department_msts_controller_spec.rb:124 # DepartmentMsts Controller PUT update with invalid params assigns the department_mst as @departm ent_mst rspec ./spec/controllers/department_msts_controller_spec.rb:132 # DepartmentMsts Controller PUT update with invalid params re-renders the 'edit' template rspec ./spec/controllers/department_msts_controller_spec.rb:143 # DepartmentMsts Controller DELETE destroy destroys the requested department_mst rspec ./spec/controllers/department_msts_controller_spec.rb:150 # DepartmentMsts Controller DELETE destroy redirects to the department_msts list rspec ./spec/controllers/employee_msts_controller_spec.rb:111 # EmployeeMstsCont roller PUT update with valid params updates the requested employee_mst rspec ./spec/controllers/employee_msts_controller_spec.rb:135 # EmployeeMstsCont roller PUT update with invalid params assigns the employee_mst as @employee_mst rspec ./spec/controllers/employee_msts_controller_spec.rb:143 # EmployeeMstsCont roller PUT update with invalid params re-renders the 'edit' template rspec ./spec/controllers/group_msts_controller_spec.rb:31 # GroupMstsController GET index assigns all group_msts as @group_msts rspec ./spec/controllers/group_msts_controller_spec.rb:39 # GroupMstsController GET show assigns the requested group_mst as @group_mst rspec ./spec/controllers/group_msts_controller_spec.rb:54 # GroupMstsController GET edit assigns the requested group_mst as @group_mst rspec ./spec/controllers/group_msts_controller_spec.rb:63 # GroupMstsController POST create with valid params creates a new GroupMst rspec ./spec/controllers/group_msts_controller_spec.rb:69 # GroupMstsController POST create with valid params assigns a newly created group_mst as @group_mst rspec ./spec/controllers/group_msts_controller_spec.rb:75 # GroupMstsController POST create with valid params redirects to the created group_mst rspec ./spec/controllers/group_msts_controller_spec.rb:100 # GroupMstsController PUT update with valid params updates the requested group_mst rspec ./spec/controllers/group_msts_controller_spec.rb:110 # GroupMstsController PUT update with valid params assigns the requested group_mst as @group_mst rspec ./spec/controllers/group_msts_controller_spec.rb:116 # GroupMstsController PUT update with valid params redirects to the group_mst rspec ./spec/controllers/group_msts_controller_spec.rb:124 # GroupMstsController PUT update with invalid params assigns the group_mst as @group_mst rspec ./spec/controllers/group_msts_controller_spec.rb:132 # GroupMstsController PUT update with invalid params re-renders the 'edit' template rspec ./spec/controllers/group_msts_controller_spec.rb:143 # GroupMstsController DELETE destroy destroys the requested group_mst rspec ./spec/controllers/group_msts_controller_spec.rb:150 # GroupMstsController DELETE destroy redirects to the group_msts list rspec ./spec/controllers/user_msts_controller_spec.rb:31 # UserMstsController GE T index assigns all user_msts as @user_msts rspec ./spec/controllers/user_msts_controller_spec.rb:39 # UserMstsController GE T show assigns the requested user_mst as @user_mst rspec ./spec/controllers/user_msts_controller_spec.rb:54 # UserMstsController GE T edit assigns the requested user_mst as @user_mst rspec ./spec/controllers/user_msts_controller_spec.rb:63 # UserMstsController PO ST create with valid params creates a new UserMst rspec ./spec/controllers/user_msts_controller_spec.rb:69 # UserMstsController PO ST create with valid params assigns a newly created user_mst as @user_mst rspec ./spec/controllers/user_msts_controller_spec.rb:75 # UserMstsController PO ST create with valid params redirects to the created user_mst rspec ./spec/controllers/user_msts_controller_spec.rb:100 # UserMstsController P UT update with valid params updates the requested user_mst rspec ./spec/controllers/user_msts_controller_spec.rb:110 # UserMstsController P UT update with valid params assigns the requested user_mst as @user_mst rspec ./spec/controllers/user_msts_controller_spec.rb:116 # UserMstsController P UT update with valid params redirects to the user_mst rspec ./spec/controllers/user_msts_controller_spec.rb:124 # UserMstsController P UT update with invalid params assigns the user_mst as @user_mst rspec ./spec/controllers/user_msts_controller_spec.rb:132 # UserMstsController P UT update with invalid params re-renders the 'edit' template rspec ./spec/controllers/user_msts_controller_spec.rb:143 # UserMstsController D ELETE destroy destroys the requested user_mst rspec ./spec/controllers/user_msts_controller_spec.rb:150 # UserMstsController D ELETE destroy redirects to the user_msts list rspec ./spec/views/department_msts/edit.html.erb_spec.rb:12 # department_msts/ed it.html.erb renders the edit department_mst form rspec ./spec/views/department_msts/new.html.erb_spec.rb:12 # department_msts/new .html.erb renders new department_mst form rspec ./spec/views/employee_msts/edit.html.erb_spec.rb:19 # employee_msts/edit.h tml.erb renders the edit employee_mst form rspec ./spec/views/employee_msts/new.html.erb_spec.rb:19 # employee_msts/new.htm l.erb renders new employee_mst form rspec ./spec/views/user_msts/edit.html.erb_spec.rb:17 # user_msts/edit.html.erb renders the edit user_mst form rspec ./spec/views/user_msts/new.html.erb_spec.rb:17 # user_msts/new.html.erb re nders new user_mst form hello! when I've run bundle exec rspec spec --backtrace I've got something like this error. What is the possible cause of this. Thank you for help in advance! -- View this message in context: http://ruby.11.x6.nabble.com/RSpec-in-controller-tp4991621.html Sent from the rspec-users mailing list archive at Nabble.com. _______________________________________________ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users