Changed assertions to make them work with Rails2/3 ruby1.8/1.9 different behaviours.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9108 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -132,8 +132,8 @@ class RepositoryTest < ActiveSupport::TestCase
|
||||
repository = Repository::Subversion.new(
|
||||
:project => Project.find(3), :url => "svn://localhost")
|
||||
assert !repository.save
|
||||
assert_equal I18n.translate('activerecord.errors.messages.invalid'),
|
||||
repository.errors[:type].to_s
|
||||
assert_include I18n.translate('activerecord.errors.messages.invalid'),
|
||||
repository.errors[:type]
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user