spec/spec_helper.rb in opay-1.0.4 vs spec/spec_helper.rb in opay-1.0.5

- old
+ new

@@ -56,13 +56,15 @@ config.order = 'random' config.before(:suite) do DatabaseCleaner.strategy = :truncation end + config.before(:each) do DatabaseCleaner.start end + config.after(:each) do DatabaseCleaner.clean end # FactoryGirl @@ -71,9 +73,13 @@ end end Spork.each_run do FactoryGirl.reload + + Dir["#{Rails.root}/../../lib/opay/*/*.rb"].each do |file| + load file + end end def response_from_template(tpl, vars = {}) bind = OpenStruct.new(vars)