Testing with Rspec

256 views

Published on

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

  • Be the first to like this

No Downloads
Views
Total views
256
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
2
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Testing with Rspec

  1. 1. Testing with rspec
  2. 2. Simple test
  3. 3. Lets are awesome
  4. 4. Subjects are awesome too
  5. 5. Use '#' for instance methods and '.' for class methods
  6. 6. Use contexts
  7. 7. Stubs vs mocks
  8. 8. Stubs vs mocks
  9. 9. Factory Girl
  10. 10. Factory Girl
  11. 11. Only one assertion per example
  12. 12. Only one assertion per example
  13. 13. Shared examples
  14. 14. Shared examples
  15. 15. Keep description short Don't use 'should'
  16. 16. Spork
  17. 17. Guard
  18. 18. Stubbing HTTP requests webmock
  19. 19. Recording HTTP requests - vcr
  20. 20. Questions?

×