Skip to content

Instantly share code, notes, and snippets.

@andreypronin
Created April 6, 2013 15:18
Show Gist options
  • Save andreypronin/5326451 to your computer and use it in GitHub Desktop.
Save andreypronin/5326451 to your computer and use it in GitHub Desktop.
Custom_plan.rb and zeus.json for smooth RSpec experience with Zeus.
require 'zeus/rails'
class CustomPlan < Zeus::Rails
def spec(argv=ARGV)
# disable autorun in case the user left it in spec_helper.rb
RSpec::Core::Runner.disable_autorun!
exit RSpec::Core::Runner.run(argv)
end
end
Zeus.plan = CustomPlan.new
{
"command": "ruby -rubygems -r./custom_plan -eZeus.go",
"plan": {
"boot": {
"default_bundle": {
"development_environment": {
"prerake": {"rake": []},
"console": ["c"],
"generate": ["g"]
},
"test_environment": {
"test_helper": {"spec": ["rspec"]}
}
}
}
}
}
@blueplanet
Copy link

I had the same problem.
Thank you to be able to solve.

However, the command, instead custom_plan, it was custom_plan_zeus_rspec.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment