Slide 49
Slide 49 text
Controller examples
account = mock_model(Account)
Account.should_receive(:find).with(37).and_return(account)
response.should be_success
response.should redirect_to(‘posts/1’)
response.should render_template(‘list’)
response.should have_text(‘some text’)
#id, #to_param, #new_record?, #errors,
#is_a?, #kind_of?, #instance_of?, #class