Skip to content

Commit

Permalink
Add a spec:all task to run specs against both ORMs
Browse files Browse the repository at this point in the history
  • Loading branch information
iangreenleaf committed Jan 7, 2015
1 parent f4439e4 commit e211325
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .travis.yml
@@ -0,0 +1,4 @@
language: ruby
services:
- mongodb
script: bundle exec rake spec:all
11 changes: 11 additions & 0 deletions Rakefile
Expand Up @@ -3,3 +3,14 @@ require 'bundler/gem_tasks'
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec)
task :default => :spec

desc 'Run the test suite for all supported ORMs.'
namespace :spec do
task :all do
%w[active_record mongoid].each do |orm|
ENV["ORM"] = orm
Rake::Task["spec"].reenable
Rake::Task["spec"].invoke
end
end
end

0 comments on commit e211325

Please sign in to comment.