A Little RSpec

1,834 views

Published on

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

  • Be the first to like this

No Downloads
Views
Total views
1,834
On SlideShare
0
From Embeds
0
Number of Embeds
7
Actions
Shares
0
Downloads
9
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

A Little RSpec

  1. 1. A Little RSpecJano GonzálezDeveloper
  2. 2. code:https://github.com/janogonzalez/a-little-rspec
  3. 3. From testing todescribing code
  4. 4. Describing Code
  5. 5. Describing Code
  6. 6. Describing Code• describe: The thing to describe• it: The expected behavior• should/should_not: The assertion
  7. 7. DRYing
  8. 8. DRYing
  9. 9. DRYing• before: Preparing the test case• after: Clean up• around: Mix before & after
  10. 10. A little more context
  11. 11. A little more context
  12. 12. A little more context• context
  13. 13. More DRYing
  14. 14. More DRYing
  15. 15. More DRYing• let• let!
  16. 16. More DRYing
  17. 17. More DRYing• implicit subject
  18. 18. More DRYing
  19. 19. More DRYing• implicit subject • it • its
  20. 20. More DRYing
  21. 21. More DRYing• explicit subject
  22. 22. More info
  23. 23. More info• @dchelimsky• The RSpec Book• @janogonzalez ;)• http://gemaroja.com ;)

×