…replaces the correct method
…s for Windows in colors.feature issue #2020 don't need to test if ANSICON installed on windows (that's up to the user; ok if it isn't) document Windows utils available for showing color (ex: ANSICON and other solutions) moved 'Windows may need solutions to show ANSI codes' into its own feature file. Massaged text to it can stand alone. added new 'color.feature' file into .nav file after 'read_options_from_file.feature' (in configuration section) replaced color= method with attr_writer :color; fixed typo in color.feature. Added link to wikipedia definition for ANSI escape code in color.feature
Before `statuses_from_previous_runs` depended upon the `@previous_runs` ivar, which was set by `persist`, so the method would fail if called before `persist`, and if called after `persist` was done, it would re-use the old `@previous_runs` state. Pretty weird. Far better to pass explicit local variables around.
This introduces file locking to ExampleStatusPersister#persist to avoid a race condition where parallel or unrelated spec runs race to update the same file: - read 1 - read 2 - write 1 - write 2 - write 1 is lost Because we need to read and write the file under the same lock, I inline #write into #persist so that dumped_statuses is called after the file is opened/locked.