[rspec-users] Specs don't find modules when using the secure_actions or ssl_requirement plugin

David Chelimsky dchelimsky at gmail.com
Sun Jun 17 11:54:35 EDT 2007


On 6/16/07, Edgar Gonzalez <edgargonzalez at gmail.com> wrote:
> Hello,
>
> I'm trying the secure_actions plugin (or ssl_requirements)
>
> I'm installed the plugin, and added the include in application controller:
>
> class ApplicationController < ActionController::Base
>   include ExceptionNotifiable
>   include AuthenticatedSystem
>   include SecureActions
> ...
>
> but when I try to run the specs I got this error:
>
> /home/edgar/sandboxes/sugarstats/config/../vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:477:in
> `const_missing': uninitialized constant
> ApplicationController::SecureActions (NameError)
>
> the same behavior if I try with ssl_requirement plugin
>
> any clue?

Maybe they're not getting loaded. Try requiring them in spec_helper.rb.

require 'secure_actions'

>
> --
> Edgar González González
> E-mail: edgargonzalez at gmail.com
> --
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
>


More information about the rspec-users mailing list