Add dspec task to test distributable script

This commit is contained in:
josh committed 2023-09-24 18:54:19 -04:00
1 parent 547dbd3850
commit db6dc0e099
3 files changed
+19 -1

No files matched your search

+12
View File
@@ -10,6 +10,18 @@ RSpec::Core::RakeTask.new(:spec, :example_pattern) do |task, args|
end
end
# dspec task is useful to test the distributable release script, but is not
# useful for coverage information.
desc "Dist Specs"
task :dspec, [:example_string] => :build_dist do |task, args|
FileUtils.rm_rf("dspec")
FileUtils.mkdir_p("dspec")
FileUtils.cp("dist/propane", "dspec/propane")
ENV["dist_specs"] = "1"
Rake::Task["spec"].execute(args)
ENV.delete("dist_specs")
end
task :default => :spec
desc "Build user guide"