|
|
|
|
|
by viseztrance
5002 days ago
|
|
Personally I don't like the first example. I also don't believe it resembles cucumber at all. It's certainly more closer to a documentation string (the ones you see in python or common lisp). In any case given the following: describe 'if the user is an admin' do
versus describe '#admin?' do
Ignoring the fact that the author is ignoring BDD here, I certainly like the first one more, even if the user part is a bit redundant.Nevertheless, what the author has done is commendable but there are few cases there that I just can't agree with. I don't see anything really wrong about them, it's just that in real life things can get complicated. |
|
If you're looking at the OP more closely, it even says this is only recommended for "describing methods".