在Ruby on Rails上学习BDD的路径是什么? [英] What is the Path to Learn BDD on Ruby On Rails?

查看:100
本文介绍了在Ruby on Rails上学习BDD的路径是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在Ruby On Rails上启动BDD,我应该学习什么?
我不知道有关BDD,RSpec或Cucumber的任何信息。什么是最好的学习方法?教程?



感谢!

解决方案

RSpec专用;我保留这些链接参考(可能提前为初学者)。但只是想与你分享。 (其中一些可能已经过时,但我认为仍值得一读)



Rspec Link Fest - 指向其他参考的链接



RSpec在控制器:
< a href =http://www.movesonrails.com/articles/2008/01/23/spec-ing-your-application-controller =noreferrer>使用rSpec测试您的应用程序控制器 p>

使用rspec测试控制器



使用Rspec on Controllers



RSpec型号:
stub_model by Dave Chelimsky



我们真的需要Controller和View测试吗? - 一些讨论



视图中的RSpec:



RSpec测试用于转义的HTML的视图



Rspec故事(现为Cucumber):





Rspec:在理解RSpec的故事 - 一个教程



RSpec,autotest和snarl在Windows - dunno如果这仍然相关



p / s:有些是从2007年,我不知道如果东西过时的或不,但这些是我的一些参考用来学习RSpec。希望它有帮助


I want to start BDD on Ruby On Rails what should I learn? I don't know anything about BDD, RSpec or Cucumber. What is the best way to learn? Tutorials? Something that cover things like 'What behavior I should test?' etc.

thanks!

解决方案

RSpec specific; I keep these links for reference (might be advance for beginners). But just wanna share it with you. (Some of it probably already outdated but I think still worth a read)

Rspec Link Fest - links to other references

RSpec in Controllers: Testing your Application Controller with rSpec

Testing Controllers with rspec

Using Rspec on Controllers

RSpec in Models: stub_model by Dave Chelimsky

Do we really need Controller and View tests? - some discussion

RSpec in Views:

RSpec testing views for escaped HTML

Rspec Stories (now Cucumber):

Understanding RSpec Stories - a Tutorial

Rspec on Windows:

RSpec, autotest and Snarl on Windows - dunno if this still relevant

p/s: Some are from 2007, I'm not sure if the stuffs are outdated or not, but these are the some of my references used to learn RSpec. Hope it helps

这篇关于在Ruby on Rails上学习BDD的路径是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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