Slide 1

Slide 1 text

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

Slide 2

Slide 2 text

a testing library for Ruby RSpec

Slide 3

Slide 3 text

August 2005 RSpec 0.1 May 2007 RSpec 1.0 October 2010 RSpec 2.0 June 2014 RSpec 3.0

Slide 4

Slide 4 text

FYI:

Slide 5

Slide 5 text

No content

Slide 6

Slide 6 text

No content

Slide 7

Slide 7 text

• 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!

Slide 8

Slide 8 text

RSpec 2: more modular

Slide 9

Slide 9 text

rspec

Slide 10

Slide 10 text

rspec-core

Slide 11

Slide 11 text

“provides the structure for RSpec code examples”

Slide 12

Slide 12 text

examples and example groups

Slide 13

Slide 13 text

spec runner

Slide 14

Slide 14 text

metadata and filtering

Slide 15

Slide 15 text

rspec-expectations

Slide 16

Slide 16 text

“Provides a simple, readable API to express expected outcomes of a code example”

Slide 17

Slide 17 text

rspec-mocks

Slide 18

Slide 18 text

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

Slide 19

Slide 19 text

stubs

Slide 20

Slide 20 text

mocks

Slide 21

Slide 21 text

rspec-core + rspec-expectations + rspec-mocks =

Slide 22

Slide 22 text

RSpec 3: cleaner, smarter

Slide 23

Slide 23 text

spring cleaning

Slide 24

Slide 24 text

no more monkey patching

Slide 25

Slide 25 text

verifying doubles

Slide 26

Slide 26 text

composable matchers

Slide 27

Slide 27 text

• 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

Slide 28

Slide 28 text

thanks! @tomstuart / [email protected]