octofacts/Rakefile

27 строки
889 B
Ruby
Исходник Обычный вид История

2017-10-06 16:15:17 +03:00
require "rspec/core/rake_task"
namespace :octofacts do
task :default => [:"octofacts:spec:octofacts", :"octofacts:spec:octofacts_updater", :"octofacts:spec:octofacts_integration"] do
end
end
RSpec::Core::RakeTask.new(:"octofacts:spec:octofacts") do |t|
t.pattern = File.join(File.dirname(__FILE__), "spec/octofacts/**/*_spec.rb")
t.name = "octofacts"
ENV["SPEC_NAME"] = "octofacts"
end
RSpec::Core::RakeTask.new(:"octofacts:spec:octofacts_updater") do |t|
t.pattern = File.join(File.dirname(__FILE__), "spec/octofacts_updater/**/*_spec.rb")
t.name = "octofacts-updater"
ENV["SPEC_NAME"] = "octofacts_updater"
end
RSpec::Core::RakeTask.new(:"octofacts:spec:octofacts_integration") do |t|
t.pattern = File.join(File.dirname(__FILE__), "spec/integration/**/*_spec.rb")
t.name = "octofacts-integration"
ENV.delete("SPEC_NAME")
end
task default: :"octofacts:default"