Re: [rspec-users] RSpec Controller Testing - render_templte Issue

2010-07-12 Thread Curtis
On Jul 12, 2010, at 11:11 AM, Rails Learner wrote: Curtis j Schofield wrote: On Mon, Jul 12, 2010 at 9:44 AM, Rails Learner wrote: # me error: response.should have_selector( 'input', :type => 'submit', :va

Re: [rspec-users] RSpec Controller Testing - render_templte Issue

2010-07-12 Thread Rails Learner
Curtis j Schofield wrote: > On Mon, Jul 12, 2010 at 9:44 AM, Rails Learner > wrote: >>      # me error: >>      response.should have_selector( 'input', >>                                     :type => 'submit', >>                                     :value => 'Print Form' ) >>      response.should

Re: [rspec-users] RSpec Controller Testing - render_templte Issue

2010-07-12 Thread Curtis j Schofield
On Mon, Jul 12, 2010 at 9:44 AM, Rails Learner wrote: > Hi! > > I am writing controller specs and getting a weird expectation failure. > Here is the example. Please read the comments for details: > >   it 'renders children/_show partial' do >      post :create, :child => @child > >      # The line

[rspec-users] RSpec Controller Testing - render_templte Issue

2010-07-12 Thread Rails Learner
Hi! I am writing controller specs and getting a weird expectation failure. Here is the example. Please read the comments for details: it 'renders children/_show partial' do post :create, :child => @child # The line "response.should render_template('children/_show')" gives #