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