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_
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
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
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
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