We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 756cc15 + d20cc1a commit 052693dCopy full SHA for 052693d
1 file changed
spec/spec_helper.rb
@@ -9,12 +9,13 @@
9
require 'support/person'
10
require 'support/food'
11
require 'support/drink'
12
+require 'byebug'
13
14
RSpec.configure do |config|
15
config.before(:suite) do
16
database_config = YAML.load(File.open("#{File.dirname(__FILE__)}/support/database.yml"))
17
ActiveRecord::Base.establish_connection(database_config)
- if Gem::Version.new(ActiveRecord::VERSION::STRING) >= Gem::Version.new("5")
18
+ if Gem::Version.new(ActiveRecord::VERSION::STRING) >= Gem::Version.new("5.2.0")
19
ActiveRecord::MigrationContext.new("#{File.dirname(__FILE__)}/support/migrations").migrate
20
end
21
0 commit comments