[#412] fixes to make tests run on 1.9.2

This commit is contained in:
Gregor Schmidt 2011-05-13 23:52:24 +02:00
parent 0ed2af49e9
commit 09fd71232e
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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?