-
Notifications
You must be signed in to change notification settings - Fork 3
/
Rakefile
37 lines (30 loc) · 1.24 KB
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# frozen_string_literal: true
require 'bundler'
require 'bundler/setup'
require 'bundler/gem_tasks'
require 'rake/testtask'
Rake::TestTask.new(:spec) do |t|
t.pattern = 'spec/**/*_spec.rb'
t.libs.push 'spec'
end
Rake::TestTask.new(:dummytest) { |t| t.pattern = 'spec/fixtures/dummy_test.rb' }
Rake::TestTask.new(:dummytest_html) { |t| t.pattern = 'spec/fixtures/dummy_html.rb' }
Rake::TestTask.new(:dummytest_full) { |t| t.pattern = 'spec/fixtures/dummy_test_full.rb' }
Rake::TestTask.new(:dummytest_filter) { |t| t.pattern = 'spec/fixtures/dummy_test_nsfilters.rb' }
Rake::TestTask.new(:dummytest_groups) { |t| t.pattern = 'spec/fixtures/dummy_test_groups.rb' }
Rake::TestTask.new(:dummytest_controller) { |t| t.pattern = 'spec/fixtures/dummy_controller_test.rb' }
task default: :spec
require 'routes_coverage/version'
namespace :assets do
desc 'Compiles all assets'
task :compile do
puts 'Compiling assets'
require 'sprockets'
assets = Sprockets::Environment.new
assets.append_path 'assets/javascripts'
assets.append_path 'assets/stylesheets'
compiled_path = 'compiled_assets'
assets['application.js'].write_to("#{compiled_path}/routes.js")
assets['application.css'].write_to("#{compiled_path}/routes.css")
end
end