Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 40 lines (31 sloc) 0.8 kb
a7751a3 @nathansobo Initial commit. Arrange dummy rails app to serve jasmine specs
authored
1 #!/usr/bin/env rake
2 begin
3 require 'bundler/setup'
4 rescue LoadError
5 puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
6 end
7 begin
8 require 'rdoc/task'
9 rescue LoadError
10 require 'rdoc/rdoc'
11 require 'rake/rdoctask'
12 RDoc::Task = Rake::RDocTask
13 end
14
15 RDoc::Task.new(:rdoc) do |rdoc|
16 rdoc.rdoc_dir = 'rdoc'
17 rdoc.title = 'Monarch'
18 rdoc.options << '--line-numbers'
19 rdoc.rdoc_files.include('README.rdoc')
20 rdoc.rdoc_files.include('lib/**/*.rb')
21 end
22
23 APP_RAKEFILE = File.expand_path("../test/dummy/Rakefile", __FILE__)
24 load 'rails/tasks/engine.rake'
25
26
27 Bundler::GemHelper.install_tasks
28
29 require 'rake/testtask'
30
31 Rake::TestTask.new(:test) do |t|
32 t.libs << 'lib'
33 t.libs << 'test'
34 t.pattern = 'test/**/*_test.rb'
35 t.verbose = false
36 end
37
38
39 task :default => :test
Something went wrong with that request. Please try again.