Behaviour Driven
Development with
RSpec

Aslak Hellesøy
CTO
blog.aslakhellesoy.com
David Chelimsky
Aslak Hellesøy
16000 downloads
Ranked 31 at RubyForge
40 contributors
2000 svn commits
890.000 Google hits...
GSoC
JRuby << RSpec
Background
TDD
Problem
Developers don’t know...
• where to start
• what to test
• what not to test
• how much to test in one go
• what to call te...
Test?
Assert??
Sapir-Whorf
BDD
BDD helps you realise
• where to start               • outside-in
• what to test                 • user stories
• what not...
Behaviour
The actions or reactions of an
object or organism, usually in
relation to the environment.
Anything that an orga...
As a bowler
I want to have my score calculated
So that I don’t have to do it myself
Design



Documentation



Tests
http://rspec.rubyforge.org/
BDD & Rspec
Upcoming SlideShare
Loading in …5
×

BDD & Rspec

2,873 views

Published on

Aslak Hellesøy's slide's of his presentation at the RubyenRails 2007 conf in Amsterdam

Published in: Technology, Business
0 Comments
6 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
2,873
On SlideShare
0
From Embeds
0
Number of Embeds
50
Actions
Shares
0
Downloads
250
Comments
0
Likes
6
Embeds 0
No embeds

No notes for slide

BDD & Rspec

  1. 1. Behaviour Driven Development with RSpec Aslak Hellesøy CTO blog.aslakhellesoy.com
  2. 2. David Chelimsky Aslak Hellesøy 16000 downloads Ranked 31 at RubyForge 40 contributors 2000 svn commits 890.000 Google hits 100% coverage 100% self describing 833 examples
  3. 3. GSoC
  4. 4. JRuby << RSpec
  5. 5. Background
  6. 6. TDD
  7. 7. Problem
  8. 8. Developers don’t know... • where to start • what to test • what not to test • how much to test in one go • what to call tests • how to fix a broken test • that TDD is about design
  9. 9. Test?
  10. 10. Assert??
  11. 11. Sapir-Whorf
  12. 12. BDD
  13. 13. BDD helps you realise • where to start • outside-in • what to test • user stories • what not to test • anything else • how much to test in one go • as little as possible • what to call tests • intent • how to fix a broken test • documentation • that TDD is about design • RSpec
  14. 14. Behaviour The actions or reactions of an object or organism, usually in relation to the environment. Anything that an organism does involving action and response to stimulation. Anything a computer system does in response to messages.
  15. 15. As a bowler I want to have my score calculated So that I don’t have to do it myself
  16. 16. Design Documentation Tests
  17. 17. http://rspec.rubyforge.org/

×