spec/spec_helper.rb in octoshark-0.1.0 vs spec/spec_helper.rb in octoshark-0.1.1
- old
+ new
@@ -17,9 +17,14 @@
config.before :each do
ActiveRecord::Base.establish_connection({adapter: 'sqlite3', database: 'tmp/default.sqlite'})
end
+ config.before :each, :mysql2 do
+ config = mysql2_configs[:db1].except(:database)
+ ActiveRecord::Base.establish_connection(config)
+ end
+
config.after :suite do
FileUtils.rm_rf(TMP)
end
end