Upgrade to Pro — share decks privately, control downloads, hide ads and more …

RSpec... Your doing it wrong... RoRoSYD Lightni...

Jon Rowe
October 08, 2013

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

A not so subtle lighting talk from RoRoSyd.

Jon Rowe

October 08, 2013
Tweet

More Decks by Jon Rowe

Other Decks in Programming

Transcript

  1. • 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
  2. • 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
  3. • 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
  4. • 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