Edgar Gonzalez
2007-Jun-16 16:29 UTC
[rspec-users] Specs don''t find modules when using the secure_actions or ssl_requirement plugin
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? -- Edgar Gonz?lez Gonz?lez E-mail: edgargonzalez at gmail.com --
David Chelimsky
2007-Jun-17 15:54 UTC
[rspec-users] Specs don''t find modules when using the secure_actions or ssl_requirement plugin
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 >
Edgar Gonzalez
2007-Jun-17 16:14 UTC
[rspec-users] Specs don''t find modules when using the secure_actions or ssl_requirement plugin
Thanks for answer David I''ll do that with no success :-/ even I try with full path If I put the require ''secure_actions'' in ApplicationController: require ''secure_action'' class ApplicationController < ActionController::Base ... the specs run fine, but I think this is not the right approach - modify the application in order to specs run On 6/17/07, David Chelimsky <dchelimsky at gmail.com> wrote:> 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 > > > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >-- Edgar Gonz?lez Gonz?lez E-mail: edgargonzalez at gmail.com http://lacaraoscura.com http://rubycorner.com http://to2blogs.com --