Skip to content

Commit

Permalink
Add a rakefile
Browse files Browse the repository at this point in the history
Update .travis.yml - recognize gemfiles for Mongoid 2 and 3.
Remove mongoid-two gemfile lock.
  • Loading branch information
joshed-io committed Oct 14, 2013
1 parent f7a52d0 commit fa75859
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 77 deletions.
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,7 @@ services: mongodb
rvm:
- 2.0.0
- 1.9.3
- 1.8.7
gemfile:
- Gemfile
- Gemfile.mongoid-two
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
source 'https://rubygems.org'

group :development, :test do
gem 'rake'
gem 'mongoid', '>= 3'

gem 'rspec'
Expand Down
77 changes: 0 additions & 77 deletions Gemfile.mongoid-two.lock

This file was deleted.

10 changes: 10 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
require 'bundler'
require 'rspec/core/rake_task'

desc "Run Rspec unit tests"
RSpec::Core::RakeTask.new(:spec) do |t|
t.pattern = "spec/**/*_spec.rb"
end

task :default => :spec
task :test => [:spec]

0 comments on commit fa75859

Please sign in to comment.