Permalink
Browse files

Switch ActiveRecord test to use sqlite3 and make sure gems are isolat…

…ed in rvm
  • Loading branch information...
1 parent 6abe4f8 commit 03583bb65eb19f2715c39f05809d88e1e3eafc10 @reidmorrison reidmorrison committed Dec 17, 2012
Showing with 24 additions and 8 deletions.
  1. +2 −1 .gitignore
  2. +1 −1 .rvmrc
  3. +17 −0 Gemfile
  4. +4 −6 test/config/database.yml
View
@@ -3,4 +3,5 @@ nbproject/*
*.gem
.idea/*
Gemfile.lock
-._test
+test.rb
+*.sqlite3
View
@@ -1,2 +1,2 @@
-rvm use ruby-1.9.3-p194
+rvm use ruby-1.9.3-p194@symmetric-encryption --create
export RACK_ENV=test
View
@@ -0,0 +1,17 @@
+source :rubygems
+
+group :test do
+ gem "shoulda"
+
+ gem "activerecord"
+ platforms :ruby do
+ gem 'sqlite3'
+ end
+
+ platforms :jruby do
+ gem 'jdbc-sqlite3'
+ gem 'activerecord-jdbcsqlite3-adapter'
+ end
+
+ gem "mongoid"
+end
@@ -1,7 +1,5 @@
test:
- database: symmetric_encryption_test
- username: root
- password:
- encoding: utf8
- adapter: mysql
- host: 127.0.0.1
+ adapter: sqlite3
+ database: test/test_db.sqlite3
+ pool: 5
+ timeout: 5000

0 comments on commit 03583bb

Please sign in to comment.