RSpec Console
RSpec Console allows you to run your RSpec tests in a Rails console. Best served chilled with irb-config.
Watch the screencast
Usage
1) Install rspec-console with:
gem 'rspec-console'
2) With Rails, disable cache_classes so reload! function properly
Ensure you turned off Rails's cache_classes in the config/environment/test.rb file:
Rails.application.configure do
# turn off this!
conig.cache_classes = false
end
3) Launch your console
With Rails, launch your console with rails c test.
4) Launch your tests
If you have Pry installed, you will have access to the rspec command
in your console, which works exactly like the shell command line rspec one.
If you don't have pry, you can use:
RSpecConsole.run 'spec/integration/closing_brand_action_spec.rb:33' '--format=doc'
Example
pafy@bisou ~/prj/sniper [master
TODO
- Testing
License
MIT License
