[mocha-developer] SslRequirements plugin and mocha

Zack Chandler zackchandler at gmail.com
Tue Jan 23 15:13:42 EST 2007


Hi. I'm  loving mocha but have ran into a problem with using the mocha
plugin with a project that has the SslRequirement plugin.  It seems
there is some conflict  between the two?  Any ideas?

$ ruby test/functional/calendar_controller_test.rb
/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.0/lib/active_support/dependencies.rb:478:in
`const_missing': uninitialized constant
ApplicationController::SslRequirement (NameError)
        from /Users/zackchandler/dev/shasta/config/../app/controllers/application.rb:6
        from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in
`require'
        from /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.0/lib/active_support/dependencies.rb:496:in
`require'
        from /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.0/lib/active_support/dependencies.rb:343:in
`new_constants_in'
        from /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.0/lib/active_support/dependencies.rb:496:in
`require'
        from /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.0/lib/active_support/dependencies.rb:105:in
`require_or_load'
        from /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.0/lib/active_support/dependencies.rb:61:in
`depend_on'
        from /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.0/lib/active_support/dependencies.rb:443:in
`require_dependency'
         ... 12 levels...
        from /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.1/lib/initializer.rb:43:in
`run'
        from /Users/zackchandler/dev/shasta/config/environment.rb:13
        from ./test/functional/../test_helper.rb:2
        from test/functional/calendar_controller_test.rb:1

Thanks,
Zack


More information about the mocha-developer mailing list