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