template/spec/spec_helper.rb in pliny-0.0.3 vs template/spec/spec_helper.rb in pliny-0.0.4
- old
+ new
@@ -23,9 +23,13 @@
Pliny::Utils.require_glob("#{Initializer.root}/spec/support/**/*.rb")
RSpec.configure do |config|
config.mock_framework = :rr
+ config.before :all do
+ load('db/seeds.rb') if File.exist?('db/seeds.rb')
+ end
+
config.before :each do
DatabaseCleaner.start
end
config.after :each do