Displaying 1 result from an estimated 1 matches for "stubresource".
Did you mean:
stub_resource
2011 Mar 30
0
Anonymous Subclass of ActionController::Base
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_resource
layout "admin/admin"
protected
def etherweb_site
end
end
Spec:
require File.expand_path(File.dirname(__FILE__) + ''/../../
spec...