Permalink
Browse files

Hello travis!

  • Loading branch information...
1 parent 8bd46fe commit 83183a6a9daa4e2d4a62bb010025a50c4a10049a @elia elia committed May 14, 2013
Showing with 11 additions and 40 deletions.
  1. +6 −0 .travis.yml
  2. +4 −39 Rakefile
  3. +1 −1 test_app/config/database.yml
View
@@ -0,0 +1,6 @@
+language: ruby
+services:
+ - mongodb
+rvm:
+ - 1.9.3
+ - 2.0.0
View
@@ -1,42 +1,7 @@
#!/usr/bin/env rake
-require "bundler/gem_tasks"
-begin
- require 'bundler/setup'
-rescue LoadError
- puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
-end
-begin
- require 'rdoc/task'
-rescue LoadError
- require 'rdoc/rdoc'
- require 'rake/rdoctask'
- RDoc::Task = Rake::RDocTask
-end
-RDoc::Task.new(:rdoc) do |rdoc|
- rdoc.rdoc_dir = 'rdoc'
- rdoc.title = 'ActiveadminMongoid'
- rdoc.options << '--line-numbers'
- rdoc.rdoc_files.include('README.rdoc')
- rdoc.rdoc_files.include('lib/**/*.rb')
-end
-
-
-
-
-require 'rake/testtask'
-
-Rake::TestTask.new(:test) do |t|
- t.libs << 'lib'
- t.libs << 'test'
- t.pattern = 'test/**/*_test.rb'
- t.verbose = false
-end
-
-
-# Import all our rake tasks
-FileList['tasks/**/*.rake'].each { |task| import task }
-
-
-task :default => :test
+require 'bundler/setup'
+require 'bundler/gem_tasks'
+require 'rspec/core/rake_task'
+RSpec::Core::RakeTask.new :default
@@ -14,7 +14,7 @@ development:
# Do not set this db to the same as development or production.
test:
adapter: sqlite3
- database: db/test.sqlite3
+ database: ":memory:"
pool: 5
timeout: 5000

0 comments on commit 83183a6

Please sign in to comment.