spec/spec_helper.rb in simphi-0.0.2 vs spec/spec_helper.rb in simphi-0.0.3
- old
+ new
@@ -1,9 +1,16 @@
-require "simphi/middleware"
-require "rack/test"
+require "rails/all"
+require "nulldb_rspec"
require "active_support"
require "active_support/core_ext"
-# Dir["spec/**/*.rb"].each { |f| require f }
+require "rack/test"
+require "rspec/rails"
+# require "rails/test_help"
+
+include NullDB::RSpec::NullifiedDatabase
+
+ActiveRecord::Base.establish_connection :adapter => :nulldb
+Dir["#{File.dirname(__FILE__)}/support/*.rb"].each { |f| require f }
RSpec.configure do |config|
config.order = "random"
end