lib/bogus/rspec.rb in bogus-0.0.2 vs lib/bogus/rspec.rb in bogus-0.0.3.rc.1
- old
+ new
@@ -1,6 +1,13 @@
require 'bogus'
RSpec.configure do |config|
config.extend Bogus::RSpecExtensions
config.include Bogus::MockingDSL
+
+ config.mock_with Bogus::RSpecAdapter
+ config.backtrace_clean_patterns << Regexp.new("lib/bogus")
+
+ config.after(:suite) do
+ Bogus.reset!
+ end
end