aboutsummaryrefslogtreecommitdiffstats
path: root/spec/spec_helper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/spec_helper.rb')
-rw-r--r--spec/spec_helper.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index a764fff03e..c53277b8e3 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -3,6 +3,17 @@ require 'spec'
require File.join(File.dirname(__FILE__), '..', 'lib', 'sql_algebra')
require File.join(File.dirname(__FILE__), 'spec_helpers', 'be_like')
+ActiveRecord::Base.configurations = {
+ 'sql_algebra_test' => {
+ :adapter => 'mysql',
+ :username => 'root',
+ :password => 'password',
+ :encoding => 'utf8',
+ :database => 'sql_algebra_test',
+ },
+}
+ActiveRecord::Base.establish_connection 'sql_algebra_test'
+
Spec::Runner.configure do |config|
config.include(BeLikeMatcher)
end \ No newline at end of file