[rspec-users] Anonymous Subclass of ActionController::Base

2011-03-30 Thread amkirwan
I'm trying to spec a subclass of ActionController::Base using an anonymous subclass but I am running into errors but I am receiving a uninitialized constant StubResource Here is my base class class Admin::BaseController < ApplicationController before_filter :etherweb_site load_and_authorize_

[rspec-users] Test Design Question #2

2011-03-30 Thread Curtis j Schofield
I am designing a test around a class that interacts with TCPSocket - I have used a mock and have asserted as minimal an interface as I can - centered around the IO methods. Should i be using a stub instead and stub on open and read - instead of mock with open, read , close and so forth. Is there

[rspec-users] Test Design Question #1

2011-03-30 Thread Curtis j Schofield
I have an model in rails with an after_create that generates another object (for the purpose of making an audit trail). In the unit test - i want to verify this behavior. This behaviour - in other tests is breaking some exceptions around (include) - since the creation of the new audit trail is le

[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