It's not quite clear to me what change you are asking for. Could you provide an example of the output you'd like to see?
Regardless, a custom formatter is probably going to be the best way to get the output you want. You can customize the output in whatever manner you like with a custom formatter. HTH, Myron On Sun, Jan 7, 2018 at 11:16 PM, philippe.perret via rspec < [email protected]> wrote: > Hi everyone, > > (Xavier Shay suggested me to post my question here) > > Is there a way to avoid the annoying thing below in rspec feedback when > the page code is very long? > > One time (bad content error) : > > Failure/Error: expect(page)... > > > "Mauvais titre" expected within "h2[id='main_titre']" in following > template: > > <html><head> > [... > a > very > very > very > long page code (two list, three iframes, etc.) > ...] > </body></html> > > > (the error message is on the top) > > Another time (tag missing error): > > Failure/Error: expect(page).send(meth, have_tag(tag, attrs)) > > > expected following: > <html><head> > [... > a > very > very > very > long page code (two list, three iframes, etc.) > ...] > </body></html> > to have at least 1 element matching "h2[id='main_titre']", found 0. > # ./spec/......' > > > > (the error message is on the bottom) > > Couldn't it be nice if error message stands both at the top and at the > bottom (or only at the top or at the bottom)? > > By the way, thanks to you and the rspec's team for this wonderful tool! > > Cheers, > > Philippe (from France) > > -- > You received this message because you are subscribed to the Google Groups > "rspec" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/rspec/b767c645-a44a-4869-8c76-6c03c5011b49%40googlegroups.com > <https://groups.google.com/d/msgid/rspec/b767c645-a44a-4869-8c76-6c03c5011b49%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "rspec" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/rspec/CADUxQmugOqBFQPK%2BzhxhuHyqiJEoArYEQNPJyfsGQ8HJTKTdaw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
