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
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
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
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
#