TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Easy Rails OAuth integration testing with Omniauth and Capybara

29 点作者 zapnap大约 14 年前

3 条评论

idlewords大约 14 年前
It's amusing that this post about some raft of dependencies that is supposed to make testing easy, painless and fun opens with a mini-rant about an earlier module that was supposed to make things super easy and fun, but ended up causing the author pain.<p>This seems like a common Rails tradeoff (trading quick development time for dependency chasing and complexity), except it's rarely presented as a tradeoff.
评论 #2345784 未加载
评论 #2345769 未加载
hopeless大约 14 年前
I recently started using Omniauth &#38; Capybara like this. It seems to work easily enough even for a relative testing novice like me.
ryanfitz大约 14 年前
I know this would slow down your integration tests and complicate them, but wouldn't you want to avoid mocking twitter this way to actually test that your site is integrating properly with the service? Mocking obviously has its place, but I'd avoid it if possible for end to end testing like this.
评论 #2345383 未加载
评论 #2345368 未加载
评论 #2345842 未加载