diff options
Diffstat (limited to 'Rakefile')
-rw-r--r-- | Rakefile | 38 |
1 files changed, 4 insertions, 34 deletions
diff --git a/Rakefile b/Rakefile index 4b90461..9a5ea73 100644 --- a/Rakefile +++ b/Rakefile | |||
@@ -1,36 +1,6 @@ | |||
1 | begin | 1 | # Add your own tasks in files placed in lib/tasks ending in .rake, |
2 | require 'bundler/setup' | 2 | # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake. |
3 | rescue LoadError | ||
4 | puts 'You must `gem install bundler` and `bundle install` to run rake tasks' | ||
5 | end | ||
6 | 3 | ||
7 | require 'rdoc/task' | 4 | require_relative "config/application" |
8 | 5 | ||
9 | RDoc::Task.new(:rdoc) do |rdoc| | 6 | Rails.application.load_tasks |
10 | rdoc.rdoc_dir = 'rdoc' | ||
11 | rdoc.title = 'Pokeviewer' | ||
12 | rdoc.options << '--line-numbers' | ||
13 | rdoc.rdoc_files.include('README.md') | ||
14 | rdoc.rdoc_files.include('lib/**/*.rb') | ||
15 | end | ||
16 | |||
17 | APP_RAKEFILE = File.expand_path("../test/dummy/Rakefile", __FILE__) | ||
18 | load 'rails/tasks/engine.rake' | ||
19 | |||
20 | |||
21 | load 'rails/tasks/statistics.rake' | ||
22 | |||
23 | |||
24 | |||
25 | require 'bundler/gem_tasks' | ||
26 | |||
27 | require 'rake/testtask' | ||
28 | |||
29 | Rake::TestTask.new(:test) do |t| | ||
30 | t.libs << 'test' | ||
31 | t.pattern = 'test/**/*_test.rb' | ||
32 | t.verbose = false | ||
33 | end | ||
34 | |||
35 | |||
36 | task default: :test | ||