0.05
No commit activity in last 3 years
No release in over 3 years
There's a lot of open issues
Colorize your Mongoid debug statments
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme

RSpec Console Build Status

RSpec Console allows you to run your RSpec tests in a Rails console. Best served chilled with irb-config.

It is especially helpful when working with jRuby, because it will keep an active JVM running for you. This drastically reduces the feedback loop of doing TDD in jRuby -- and all without messing with nail-gun!

Watch the screencast

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!
  config.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●] % rails c test
~/prj/crowdtap/sniper (test) > rspec spec/integration/closing_brand_action_spec.rb:33 --format=doc
Run options: include {:locations=>{"./spec/integration/closing_brand_action_spec.rb"=>[33]}}

Sniper
  when reaching the maximum number of participants
    no longer targets this brand action on members

Finished in 0.12654 seconds
1 example, 0 failures
~/prj/crowdtap/sniper (test) >

Authors

License

MIT License