The blog of Rahoul Baruah from 3hv Ltd

What's going on?

My name is Rahoul Baruah (aka Baz) and I'm a software developer in Leeds (England).

This is a log of things I've discovered while writing software in Ruby on Rails. In other words, geek stuff.

However, I've decided to put this blog on ice - I would ask you to check out my business blog here (or subscribe here).

06 February, 2008

What's wrong with RSpec?

I don't know.

I've tried, really tried to like it.

And I don't know why I don't.

Something just doesn't feel right.

  • It's testing.
  • It's test-first.
  • It's test as specification.
  • It reads like English.

All things I like.

But it feels wrong, wrong, wrong.

Anyone have any ideas why?

PS: I was going to call this post "Arse-pec" but I thought that was a bit harsh.


Kevin Rutherford said...

rspec drifts in and out of favour with me. I have no idea why. Right now it's in favour, cos I just wrote a nice article using it to demo BDD. I thought that maybe it was because I've been using assert-style frameworks for so long. Or maybe I just don't get the syntax of the apparently many variants of 'should' (give me a simple 'assert' any day).

Can you quantify what you dislike about rspec? (For me it's the unfamiliarity, and those "should"s.)

Baz said...

It may be unfamiliarity, it may be the "should" syntax.

But I just don't know.

Somewhere, something feels wrong and I can't put my finger on what it is or why it's not right.

Hence the post asking the question.

One thing I do know is that when something feels wrong, I do eventually dig down into a real reason for that uneasiness - but often it takes a long time to get there. So I was trying to speed the process up a bit.

By the way, thanks for stopping by Kevin - I keep meaning to answer you on LinkedIn but stuff keeps getting in the way (as ever).

eXTReMe Tracker