Reputation: 688
When I run an rspec test, I want to get details of the variables in the code that is tested. I tried to use rubymine, but it is complicated to configure. Sublime text 2 is a ruby friendly editor, so I wish someone can recommend some plugins to me.
Upvotes: 0
Views: 53
Reputation: 176352
There is no similar package for Sublime. What you are looking for is a debugger (in fact, RubuyMine integrates the Ruby debugger).
The most common Ruby debugger is the debugger gem. Simply install it, then place a debugger
statement where you want to debug the execution and you'll be able to jump in the middle of the running spec execution.
Upvotes: 1
Reputation: 13344
Unfortunately, I don't know of any Sublime plugins that will do this for you, but...
Check out the pry gem. This will allow you to peek into your code, view instance variables, modify settings, etc. within the middle of an Rspec test.
Upvotes: 2