Sha256: fc5c892e77a7fd202ea1c7ed44d092b6d907910042d4d11d755ef2b565c0fd23
Contents?: true
Size: 310 Bytes
Versions: 114
Compression:
Stored size: 310 Bytes
Contents
def test_create_invalid <%= class_name %>.any_instance.stubs(:valid?).returns(false) post :create assert_template 'new' end def test_create_valid <%= class_name %>.any_instance.stubs(:valid?).returns(true) post :create assert_redirected_to <%= item_path_for_test('url') %> end
Version data entries
114 entries across 83 versions & 14 rubygems