-
Notifications
You must be signed in to change notification settings - Fork 4
/
Rakefile
35 lines (27 loc) · 1.14 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
require 'bundler/gem_tasks'
require 'rspec/core/rake_task'
require 'yard'
require 'yard/rake/yardoc_task'
task :spec => [:spec_common, :spec_with_rspec, :spec_with_mocha, :spec_with_flexmock]
YARD::Rake::YardocTask.new('yard')
desc 'Runs the specs that are common to all mocking mechanisms'
RSpec::Core::RakeTask.new(:spec_common) do |t|
t.pattern = 'spec/lib/kaminari_rspec/test_helpers_spec.rb'
end
desc 'Runs the specs that need the built-in RSpec mocking mechanism'
RSpec::Core::RakeTask.new(:spec_with_rspec) do |t|
t.pattern = 'spec/lib/kaminari_rspec/rspec/test_helpers_spec.rb'
end
desc 'Runs the specs that need the rr mocking mechanism'
RSpec::Core::RakeTask.new(:spec_with_rr) do |t|
t.pattern = 'spec/lib/kaminari_rspec/rr/test_helpers_spec.rb'
end
desc 'Runs the specs that need the mocha mocking mechanism'
RSpec::Core::RakeTask.new(:spec_with_mocha) do |t|
t.pattern = 'spec/lib/kaminari_rspec/mocha/test_helpers_spec.rb'
end
desc 'Runs the specs that need the flexmock mocking mechanism'
RSpec::Core::RakeTask.new(:spec_with_flexmock) do |t|
t.pattern = 'spec/lib/kaminari_rspec/flexmock/test_helpers_spec.rb'
end
task :default => :spec