[LRUG] Writing readable feature tests with RSpec

Vincent Bonmalais vb.kouno at gmail.com
Sat Jul 26 08:30:50 PDT 2014


I'm surprised nobody mentioned (yet) the possibility of refactoring these
into page object models. Our team has been discussing this for a while now,
and I think that considering the size of our codebase it has gone a bit out
of hand.

I personally still don't like this style even after working with it for a
year now. Mostly because we still have the habit of defining these on the
describe block scope (1) instead of making proper modules (that and using
the private keyword for some reason :sigh:...). I think at this point the
team would be happy to have a mix of this (for readability) and using page
object models behind the scene to have a meaningful way of organising our
feature test code.

If anyone has experience with page object models I would be interested to
hear how it did go.

(1) Also, if defined on the define block, my ctag doesn't seem to pick it
up :cry:.


On Sat, Jul 26, 2014 at 2:17 PM, Paul Battley <pbattley at gmail.com> wrote:

> On 26 July 2014 12:32, Kerry Buckley <kerryjbuckley at gmail.com> wrote:
> > Cucumber-vim supports jumping to step definitions with ctrl-].
>
> Brilliant! Somehow I never realised that. Despite having a version of
> vim-cucumber *that actually supports jumping*, I was absolutely sure
> that it wasn't possible. And absolutely wrong.
>
> Paul.
> _______________________________________________
> Chat mailing list
> Chat at lists.lrug.org
> Archives: http://lists.lrug.org/pipermail/chat-lrug.org
> Manage your subscription: http://lists.lrug.org/options.cgi/chat-lrug.org
> List info: http://lists.lrug.org/listinfo.cgi/chat-lrug.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lrug.org/pipermail/chat-lrug.org/attachments/20140726/a86bd199/attachment-0003.html>


More information about the Chat mailing list