This line is apparently a syntax error on 1.8 (see the failing travis build).  It's not obvious to me what about it causes the failure; maybe it's the `lambda { } do` bit at the end (as that could be interpretted as passing two blocks to `lambda`).  Maybe you need to use parens (e.g. `(` after `it_behaves_like` and `)` before `do`)?