Rails / Devise - 我应该用devise和rspec来测试什么? [英] Rails/Devise - What should I test with devise and rspec?

查看:173
本文介绍了Rails / Devise - 我应该用devise和rspec来测试什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

许多程序员使用devise作为他们的认证解决方案,我想得到他们的建议:



Devise已经测试过,但是我想知道是否有东西测试自己(整合/单位/功能测试?)与我的知识的标准设计集成
(我不熟悉肩膀和黄瓜,但我知道一点rspec和工厂女孩)



感谢您的建议!!

解决方案

测试集成可以很好。因为你如何整合devise哪里可以做一些错误。定义一些黄瓜功能,没关系。


Many programmers use devise as their authentication solution and I would like to get their advice:

Devise is already tested, but I want to know if there is something to test by myself (integration/unit/funtionnal tests?) for a standard devise integration with my knowledge (I'm not familiar with shoulda and cucumber, but I know a bit of rspec and factory girls)

Thanks for your advices!!

解决方案

Testing the integration can be great. Because is how you integrate devise where you can do some error. Define some cucumber feature and it's OK.

这篇关于Rails / Devise - 我应该用devise和rspec来测试什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆