spec/spec_helper.rb in grape-app-0.9.0 vs spec/spec_helper.rb in grape-app-0.10.0
- old
+ new
@@ -1,8 +1,9 @@
ENV['RACK_ENV'] ||= 'test'
require 'grape-app'
require 'rack/test'
require 'active_record'
+require 'active_job'
ActiveRecord::Base.configurations = { 'test' => { 'adapter' => 'sqlite3', 'database' => ':memory:' } }
ActiveRecord::Base.establish_connection :test
ActiveRecord::Base.connection.instance_eval do
create_table :articles do |t|