On Mon, Jun 10, 2013 at 5:09 AM, oliver <oliverjesus2...@yahoo.com> wrote:

>
>
> --- On *Mon, 6/10/13, David Chelimsky-2 [via Ruby] <[hidden 
> email]<http://user/SendEmail.jtp?type=node&node=4991637&i=0>
> >* wrote:
>
>
> From: David Chelimsky-2 [via Ruby] <[hidden 
> email]<http://user/SendEmail.jtp?type=node&node=4991637&i=1>
> >
> Subject: Re: <help> renders new/edit user_mst form
> To: "oliver" <[hidden 
> email]<http://user/SendEmail.jtp?type=node&node=4991637&i=2>
> >
> Date: Monday, June 10, 2013, 9:57 AM
>
> On Mon, Jun 10, 2013 at 4:39 AM, oliver <[hidden email]> wrote:
>
>   def new
>     @user_mst = UserMst.new
>     @group_mst = GroupMst.all
>
>
> Under normal circumstances, this line ^^ would assign @group_mst an empty
> collection, not nil, so something is wrong with the way things are set
> up/configured.
>
> What happens if you stub GroupMst.all in the spec:
>
>     GroupMst.stub(:all => [])
>
> Please try that and then run just one example like this:
>
>     rspec spec/views/user_msts/new.html.erb_spec.rb:18 --backtrace
>
> And then post the complete output.
>
>
>
>
>
>     respond_to do |format|
>       format.html # new.html.erb
>       format.xml  { render :xml => @user_mst }
>     end
>   end
>
>
> Those are the lines I include @group_mst.
>
>
>
>
> _______________________________________________
> rspec-users mailing list
> [hidden email]
> http://rubyforge.org/mailman/listinfo/rspec-users
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://ruby.11.x6.nabble.com/help-renders-new-edit-user-mst-form-tp4991623p4991635.html
>  To unsubscribe from <help> renders new/edit user_mst form, click here.
> NAML<http://ruby.11.x6.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>
>
>
> 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:20: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 0.67188 seconds
> 1 example, 1 failure
>
> Failed examples:
>
> rspec ./spec/views/user_msts/new.html.erb_spec.rb:19 #
> user_msts/new.html.erb re
> nders new user_mst form
>
> That is the output.
>
>
It looks like it got cut off at the beginning. Can you paste the full
output starting from the command?
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to