19

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!

cjapes
  • 99
  • 9
Guilherme
  • 1,126
  • 9
  • 17
  • Here you can find all the rspec testcase examples. Visit https://relishapp.com/rspec/rspec-rails/docs and https://github.com/rspec/rspec-expectations – Tusshar Garg May 29 '17 at 05:25

3 Answers3

5

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

edthix
  • 1,752
  • 16
  • 18
3

Start with two articles by Dan North: Introducing BDD, followed closely What's in a Story?

Abie
  • 10,855
  • 6
  • 32
  • 39
-1

Start at the top, RSpec home page:

http://rspec.info/

Cody Caughlan
  • 32,456
  • 5
  • 63
  • 68
  • -1 this is not helpful at all, just a link to a book with no explanation of what you find useful there. there is only one simple example on the page. – botbot Aug 07 '12 at 18:36