spec/spec_helper.rb in couchrest_model-1.1.0.beta2 vs spec/spec_helper.rb in couchrest_model-1.1.0.beta3
- old
+ new
@@ -20,9 +20,11 @@
use_database TEST_SERVER.default_database
end
def reset_test_db!
DB.recreate! rescue nil
+ # Reset the Design Cache
+ Thread.current[:couchrest_design_cache] = {}
DB
end
RSpec.configure do |config|
config.before(:all) { reset_test_db! }