spec/spec_helper.rb in zyra-0.0.1 vs spec/spec_helper.rb in zyra-0.0.2
- old
+ new
@@ -9,9 +9,14 @@
SimpleCov.start 'gem'
require 'zyra'
require 'pry-nav'
+require 'active_record'
+ActiveRecord::Base.establish_connection(
+ adapter: 'sqlite3', database: ':memory:'
+)
+
support_files = File.expand_path('spec/support/**/*.rb')
Dir[support_files].sort.each { |file| require file }
RSpec.configure do |config|