I've been bitten by this and I bet that other people too.
If you use do/end instead of {} (which is more usual in multi-line blocks), the test will always pass, whatever you add, because no block is being passed to have_structure (to is taking it I think).
I see the gem is not very active, but it seems the most convenient way to test generators, so it'd be nice to have this merged!
I've been bitten by this and I bet that other people too. If you use
do/end
instead of{}
(which is more usual in multi-line blocks), the test will always pass, whatever you add, because no block is being passed tohave_structure
(to
is taking it I think).I see the gem is not very active, but it seems the most convenient way to test generators, so it'd be nice to have this merged!