Adds a setting to allow subtasks to belong to other projects (#5487).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10587 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -156,6 +156,14 @@ class ActiveSupport::TestCase
|
||||
hs
|
||||
end
|
||||
|
||||
def assert_save(object)
|
||||
saved = object.save
|
||||
message = "#{object.class} could not be saved"
|
||||
errors = object.errors.full_messages.map {|m| "- #{m}"}
|
||||
message << ":\n#{errors.join("\n")}" if errors.any?
|
||||
assert_equal true, saved, message
|
||||
end
|
||||
|
||||
def assert_error_tag(options={})
|
||||
assert_tag({:attributes => { :id => 'errorExplanation' }}.merge(options))
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user