Welcome back to RSpec

Welcome back to RSpec

Cd9b247e4507fed75312e9a42070125d?s=128

Tom Stuart

July 14, 2014
Tweet

Transcript

  1. RSPEC TO WELCOME BACK @tomstuart / LRUG / 2014-07-14

  2. a testing library for Ruby RSpec

  3. August 2005 RSpec 0.1 May 2007 RSpec 1.0 October 2010

    RSpec 2.0 June 2014 RSpec 3.0
  4. FYI:

  5. None
  6. None
  7. • it started as an experiment, now it’s become mature

    • it used to be all over the place, now it’s much more focused • it used to be adventurous, now it’s more conservative • now’s a great time to [re]try it!
  8. RSpec 2: more modular

  9. rspec

  10. rspec-core

  11. “provides the structure for RSpec code examples”

  12. examples and example groups

  13. spec runner

  14. metadata and filtering

  15. rspec-expectations

  16. “Provides a simple, readable API to express expected outcomes of

    a code example”
  17. rspec-mocks

  18. “RSpec’s ‘test double’ framework, with support for stubbing and mocking”

  19. stubs

  20. mocks

  21. rspec-core + rspec-expectations + rspec-mocks =

  22. RSpec 3: cleaner, smarter

  23. spring cleaning

  24. no more monkey patching

  25. verifying doubles

  26. composable matchers

  27. • mature • simpler, cleaner, more focused • world-class components

    • use the bits you like, ignore the bits you don’t like, bring your own other bits • conscientious, friendly, helpful maintainers
  28. thanks! @tomstuart / tom@codon.com