[rspec-users] [HOOKS] spec_helper aware of full test suite being run? After hook to run code after running all specs?

2011-03-30 Thread Peter Boling
Sorry if multiple postings of this show up. I had to RTFM a few times before I figured out how to post correctly. I use VCR to record interactions, and when the recordings change filenames, and directory structure, over time, as the test suite evolves, the old recordings, no longer used, are rare

Re: [rspec-users] [HOOKS] spec_helper aware of full test suite being run? After hook to run code after running all specs?

2011-03-30 Thread Peter Boling
Update: I have fixed rake spec. Someone else on the team had removed the gem dependency from the development group in the Gemfile. Once added back rake spec worked fine. ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman

Re: [rspec-users] [HOOKS] spec_helper aware of full test suite being run? After hook to run code after running all specs?

2011-03-31 Thread Peter Boling
Some additional data: rspec 2.5.1 rspec-rails 2.5.1 rails 3.0.4 ruby 1.9.2p0 rake 0.8.7 I have gotten all of this working now with the exception of a way to hook some code to be run after finishing all specs while still in the same thread. When I run Rake::Task["spec"].invoke within another rake

Re: [rspec-users] [HOOKS] spec_helper aware of full test suite being run? After hook to run code after running all specs?

2011-03-31 Thread Peter Boling
I have implemented a full solution. Had to persist the list of unused VCR cassettes to the file system. Cheers! It would be still be cool if there was an after hook on rspec, as there is on capistrano!___ rspec-users mailing list rspec-users@rubyforge.

Re: [rspec-users] [HOOKS] spec_helper aware of full test suite being run? After hook to run code after running all specs?

2011-04-01 Thread Peter Boling
Wow! That's perfect, I think. I'll have to play around with it and make sure the after suite can be made to only run code if the entire suite has been run, but it looks promising! - Peter ___ rspec-users mailing list rspec-users@rubyforge.org http://r

Re: [rspec-users] [HOOKS] spec_helper aware of full test suite being run? After hook to run code after running all specs?

2011-04-01 Thread Peter Boling
The before and after :suite hooks work for running code before and after rspec runs all the tests specified, but I need it to explicitly *not run* when anything less than every single spec is being run. In other words is we are running rspec spec or rake spec I need this before and after :suite

[rspec-users] spec_helper aware of full test suite being run? After hook to run code after running all specs?

2011-04-02 Thread Peter Boling
I use VCR to record interactions, and when the recordings change filenames, and directory structure, over time, as the test suite evolves, the old recordings, no longer used, are rarely pruned. I would like to have the ability to run rspec with an option to check for unused VCR recordings, and ano

[rspec-users] spec_helper aware of full test suite being run? After hook to run code after running all specs?

2011-04-02 Thread Peter Boling
I use VCR to record interactions, and when the recordings change filenames, and directory structure, over time, as the test suite evolves, the old recordings, no longer used, are rarely pruned. I would like to have the ability to run rspec with an option to check for unused VCR recordings, and ano

Re: [rspec-users] no output from rspec

2011-04-05 Thread Peter Boling
I had a similar issue recently. If you are using bundler and only specify rspec-rails to load in the :test environment, i.e. not in the :development environment, when you run rake rspec you will get no output. You must specify rspec-rails in :test AND :development (it doesn' t load the whole