forked from formtastic/formtastic
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Rakefile
35 lines (28 loc) · 833 Bytes
/
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
# encoding: utf-8
require 'bundler/setup'
require 'appraisal'
require 'yard'
require 'rspec/core/rake_task'
Bundler::GemHelper.install_tasks
desc 'Default: run unit specs.'
if !ENV["APPRAISAL_INITIALIZED"] && !ENV["TRAVIS"]
task :default => :appraisal
else
task :default => :spec
end
desc 'Generate documentation for the formtastic plugin.'
YARD::Rake::YardocTask.new(:yard) do |t|
end
task doc: :yard
desc 'Test the formtastic plugin.'
RSpec::Core::RakeTask.new('spec') do |t|
t.pattern = FileList['spec/**/*_spec.rb']
end
desc 'Test the formtastic inputs.'
RSpec::Core::RakeTask.new('spec:inputs') do |t|
t.pattern = FileList['spec/inputs/*_spec.rb']
end
desc 'Test the formtastic plugin with specdoc formatting and colors'
RSpec::Core::RakeTask.new('specdoc') do |t|
t.pattern = FileList['spec/**/*_spec.rb']
end