Clear formatters between runs #435

Closed
wants to merge 3 commits into
from
Jump to file or symbol
Failed to load files and symbols.
+9 −0
Diff settings

Always

Just for now

@@ -66,6 +66,7 @@ def initialize
def reset
@reporter = nil
+ @formatters = []
end
# :call-seq:
@@ -886,5 +886,13 @@ def metadata_hash(*args)
end
end
+ describe "#reset" do
+ it "resets the reporter and formatters" do
+ config.reporter
+ config.formatters.should_not be_empty
+ config.reset
+ config.formatters.should be_empty
+ end
+ end
end
end