forked from apiaryio/dredd-hooks-ruby
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
33 lines (26 loc) · 834 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
require "bundler/gem_tasks"
require "cucumber/rake/task"
Cucumber::Rake::Task.new
begin
require 'rspec/core/rake_task'
desc 'Provide private interfaces documentation'
RSpec::Core::RakeTask.new(:spec)
namespace :spec do
desc 'Provide public interfaces documentation'
RSpec::Core::RakeTask.new(:public) do |t|
t.rspec_opts = "--tag public"
end
end
namespace :spec do
desc 'Provide private interfaces documentation for development purpose'
RSpec::Core::RakeTask.new(:development) do |t|
t.rspec_opts = "--tag protected --tag private"
end
end
rescue LoadError
desc 'RSpec rake task not available'
task :spec do
abort 'RSpec rake task is not available. Be sure to install rspec-core as a gem or plugin'
end
end
task default: ['spec:public', 'spec:development', :cucumber]