[#412] fixes to make tests run on 1.9.2
This commit is contained in:
parent
0ed2af49e9
commit
09fd71232e
|
@ -19,7 +19,7 @@
|
|||
|
||||
|
||||
Dir[File.expand_path("../redmine/acts/journalized/*.rb", __FILE__)].each{|f| require f }
|
||||
require_dependency 'lib/ar_condition'
|
||||
require_dependency File.expand_path('lib/ar_condition', Rails.root)
|
||||
|
||||
module Redmine
|
||||
module Acts
|
||||
|
|
|
@ -35,7 +35,7 @@ module Redmine::Acts::Journalized
|
|||
|
||||
# FIXME: When the new API is settled, remove me
|
||||
Redmine::Acts::Event::InstanceMethods.instance_methods(false).each do |m|
|
||||
if m.start_with? "event_"
|
||||
if m.to_s.start_with? "event_"
|
||||
class_eval(<<-RUBY, __FILE__, __LINE__)
|
||||
def #{m}
|
||||
if last_journal.nil?
|
||||
|
|
Loading…
Reference in New Issue