Project

General

Profile

MethodError: undefined method `generate!' for #<Class:0xb688ac14>

Added by jan yu about 12 years ago

fail in unit test,many test fail are the same question,how can i fix it?
detail :

Error:
test_ciphered_password_with_no_cipher_key_configured_should_be_returned_ciphered(Redmine::CipheringTest):
NoMethodError: undefined method `generate!' for #<Class:0xb688ac14>
test/unit/lib/redmine/ciphering_test.rb:67:in `test_ciphered_password_with_no_cipher_key_configured_should_be_returned_ciphered'
lib/redmine/configuration.rb:75:in `with'
test/unit/lib/redmine/ciphering_test.rb:66:in `test_ciphered_password_with_no_cipher_key_configured_should_be_returned_ciphered'

i had install edavis10-object_daddy,maybe some plugin cause this error,when i remove all unofficial plugin,the units test are pass,how can i fixed it.here is my plugin init.rb:


require 'redmine'
require "hooks/issue_extention_hooks" 
require "hooks/my_extention_hooks" 
require "hooks/project_extention_hooks" 
require "issue_fixed_version_require" 
require "hooks/context_menu_hooks" 
require "paths/watchers_controller_patch" 

require "paths/account_controller_patch" 
require "regist_custom_field" 
require "init/init_custom_field" 
require "tasks/svn_reveive_process" 
Dispatcher.to_prepare :redmine_issue_extention do
  unless WatchersController.included_modules.include? WatchersControllerPatch
    WatchersController.send(:include, WatchersControllerPatch)
  end
  unless AccountController.included_modules.include? AccountControllerPatch
    AccountController.send(:include, AccountControllerPatch)
  end
end

unless Redmine::Plugin.registered_plugins.keys.include?(:redmine_extention)
  Redmine::Plugin.register :redmine_extention do
    name 'plugin'
    author 'jan'
    description ''
    version '0.0.1'
    url ''
    author_url ''
  end
end

Redmine::AccessControl.permissions.each do |permission|
  next unless permission.name==:edit_issues
  permission.actions << "#{:pop_query}/#{:pop}" 
end

#ActionController::Routing::Routes.add_route('projects/:project_id/pop_query', :controller => 'issues', :action => 'pop_query')
#ActionController::Routing::Routes.draw do |map|
#  map.connect 'projects/:project_id/pop_query', :controller => 'issues', :action => 'pop_query'
#end