Sha256: b035b32dd52a6ac5e268b60407c28604635a1043d5a2ce763b0326172374e69a
Contents?: true
Size: 305 Bytes
Versions: 15
Compression:
Stored size: 305 Bytes
Contents
it 'posts create action and renders new template when model is invalid' do <%= class_name %>.any_instance.stubs(:save).returns(false) post :create response.should render_template(:new) end it 'posts create action and redirects' do post :create response.should be_redirect end
Version data entries
15 entries across 15 versions & 1 rubygems