Hi I am experimenting with Constructor based dependency injection for rails controllers.
So I have something like this class LoginSessionsController < ApplicationController def initialize(authenticator = TheRealAuthenticator) @authenticator = authenticator end .... end The plan was to override the authenticator used when testing with something like describe LoginSessionsController.new(MyMockAuthenticator) do ...... end but rspec seems to insist on constructing the controller itself Is there a way to do this I am missing? _______________________________________________ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users