Skip to content

Instantly share code, notes, and snippets.

@Baozi2
Created April 28, 2018 03:47
Show Gist options
  • Save Baozi2/14f38b125fc4ee5e7ed9cd818481e61d to your computer and use it in GitHub Desktop.
Save Baozi2/14f38b125fc4ee5e7ed9cd818481e61d to your computer and use it in GitHub Desktop.
rails 5.2 add a test task for lib directory
namespace :test do
task :lib => "test:prepare" do
$: << "test"
Rails::TestUnit::Runner.rake_run(["test/lib"])
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment