Permalink
Browse files

spec for resetting formatters

  • Loading branch information...
1 parent 848c79d commit f4f6156943a75135c552a7286208d4dfa7adb599 @johnbintz committed Aug 7, 2011
Showing with 8 additions and 0 deletions.
  1. +8 −0 spec/rspec/core/configuration_spec.rb
@@ -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

0 comments on commit f4f6156

Please sign in to comment.