Created
April 6, 2013 15:18
-
-
Save andreypronin/5326451 to your computer and use it in GitHub Desktop.
Custom_plan.rb and zeus.json for smooth RSpec experience with Zeus.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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"]} | |
} | |
} | |
} | |
} | |
} |
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
Read related post: http://platformonrails.wordpress.com/2013/04/06/smooth-rspec-experience-with-zeus/