Skip to content

Commit

Permalink
Add test task
Browse files Browse the repository at this point in the history
  • Loading branch information
John Duff committed Oct 12, 2011
1 parent fdeb00a commit 208bb9e
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
17 changes: 17 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1 +1,18 @@
#!/usr/bin/env rake
begin
require 'bundler/setup'
rescue LoadError
puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
end

require 'bundler/gem_tasks'
require 'rake/testtask'

Rake::TestTask.new(:test) do |t|
t.libs << 'lib'
t.libs << 'test'
t.pattern = 'test/*_test.rb'
t.verbose = false
end

task :default => :test
1 change: 1 addition & 0 deletions batman-rails.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ Gem::Specification.new do |s|
s.add_development_dependency "bundler", "~> 1.0.0"
s.add_development_dependency "rails", "~> 3.1.0"
s.add_development_dependency "mocha"
s.add_development_dependency "sqlite3"

s.files = `git ls-files`.split("\n")
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
Expand Down

0 comments on commit 208bb9e

Please sign in to comment.