Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
27 lines (22 sloc) 574 Bytes
require 'spec/rake/spectask'
task :default => :test
task :test => :spec
if !defined?(Spec)
puts "spec targets require RSpec"
else
desc "Run all examples"
Spec::Rake::SpecTask.new('spec') do |t|
t.spec_files = FileList['spec/**/*.rb']
t.spec_opts = ['-cfs']
end
end
namespace :gems do
desc 'Install required gems'
task :install do
required_gems = %w{ sinatra rspec rack-test mongo_mapper erubis }
required_gems.each { |required_gem| system "sudo gem install #{required_gem}" }
end
end
task :environment do
require 'config/environment'
end
Something went wrong with that request. Please try again.