Skip to content

Instantly share code, notes, and snippets.

@iNecas
Created September 11, 2014 13:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iNecas/affadd2b8664fb07b406 to your computer and use it in GitHub Desktop.
Save iNecas/affadd2b8664fb07b406 to your computer and use it in GitHub Desktop.
zeus start
zeus test ../katello/spec/...
require 'zeus/rails'
class CustomPlan < Zeus::Rails
# def my_custom_command
# # see https://github.com/burke/zeus/blob/master/docs/ruby/modifying.md
# end
def test_environment
require 'minitest/unit'
MiniTest::Unit.class_variable_set("@@installed_at_exit", true)
$LOAD_PATH.unshift '../katello/test'
$LOAD_PATH.unshift '../katello/spec'
require 'katello_test_runner'
super
end
end
Zeus.plan = CustomPlan.new
{
"command": "ruby -rubygems -r./custom_plan -eZeus.go",
"plan": {
"boot": {
"default_bundle": {
"development_environment": {
"prerake": {"rake": []},
"runner": ["r"],
"console": ["c"],
"server": ["s"],
"dbconsole": []
},
"test_environment": {
"test_helper": {"test": ["testrb"]}
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment