RSpec... Your doing it wrong... RoRoSYD Lightning Talk October 2013

D79fc498d7a5b2ce12180890247476f0?s=47 Jon Rowe
October 08, 2013

RSpec... Your doing it wrong... RoRoSYD Lightning Talk October 2013

A not so subtle lighting talk from RoRoSyd.

D79fc498d7a5b2ce12180890247476f0?s=128

Jon Rowe

October 08, 2013
Tweet

Transcript

  1. rspec... youre doing it wrong... Tuesday, 8 October 13

  2. Tuesday, 8 October 13

  3. Tuesday, 8 October 13

  4. Tuesday, 8 October 13

  5. Tuesday, 8 October 13

  6. youre doing it wrong! Tuesday, 8 October 13

  7. • Don’t use it { should do_thing } • Don’t

    write describe Class do ... end • Do write actually descriptive text • Do use describe and context and nest • Do use your judgement Tuesday, 8 October 13
  8. Tuesday, 8 October 13

  9. youre doing it wrong! Tuesday, 8 October 13

  10. • Not. A. Unit. Test. • Why are you testing

    something that’s beyond your control? • What value is this giving you? • Where is this of most use anyway? • Find the best value for your code. Tuesday, 8 October 13
  11. Tuesday, 8 October 13

  12. youre doing it wrong! Tuesday, 8 October 13

  13. Tuesday, 8 October 13

  14. Tuesday, 8 October 13

  15. youre doing it wrong! Tuesday, 8 October 13

  16. Tuesday, 8 October 13

  17. • Asthetics are personal. • RSpec is meta. • RSpec

    is sugar. • RSpec is happyness. • Ruby is meta. • Ruby is sugar. • Ruby is happyness. Tuesday, 8 October 13
  18. Tuesday, 8 October 13

  19. youre doing it wrong! Tuesday, 8 October 13

  20. A theory is impossible to prove but Easy to disprove...

    Tuesday, 8 October 13
  21. Tuesday, 8 October 13

  22. Tuesday, 8 October 13

  23. Tuesday, 8 October 13

  24. thanks @jonrowe Tuesday, 8 October 13

  25. BONUS ROUND... Tuesday, 8 October 13

  26. Tuesday, 8 October 13

  27. youre doing it wrong! Tuesday, 8 October 13

  28. • Write more unit tests... • Write more specalised tests...

    • Don’t use rspec-rails • Do use Rails 4 • Do consider the value of the tests Tuesday, 8 October 13