Skip to content

Instantly share code, notes, and snippets.

import UIKit
import XCTest
@testable import Society6
class ModelFactoryTests: XCTestCase {
override func setUp() {
super.setUp()
// Put setup code here. This method is called before the invocation of each test method in the class.
require 'mysql'
require 'active_record'
ActiveRecord::Base.logger = Logger.new('debug.log')
configuration = YAML::load(IO.read('config/database.yml'))
ActiveRecord::Base.establish_connection(configuration['development'])
class FactorWeight < ActiveRecord::Base
end