I’ve found one bug when failing before :all block doesn’t move html
progress bar correctly.
You can test it out easily by doing something like this:
describe “bad bad bad” do
before :all do
it “empty” do
Now run this spec with html formatter and you should get 100% width to
rspec-header div, but it has width of 0%. When you add some other
blocks with specs then it would be something below 100%, but should be
if everything is finished.
I’ve fixed this in my custom htmlformatter by adding these lines into
example_failed method prior invoking super:
def example_failed example, counter, failure
#some other stuff
if example.description == "before(:all)" @example_number +=
If there’s any better solution, please let me know
View this message in context:
Sent from the rspec-users mailing list archive at Nabble.com.