summaryrefslogtreecommitdiffstats
path: root/test/unit/issue_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit/issue_test.rb')
-rw-r--r--test/unit/issue_test.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/unit/issue_test.rb b/test/unit/issue_test.rb
index e4edb6acd..e654dfeac 100644
--- a/test/unit/issue_test.rb
+++ b/test/unit/issue_test.rb
@@ -136,11 +136,11 @@ class IssueTest < ActiveSupport::TestCase
assert issue.available_custom_fields.include?(field)
# No value for the custom field
assert !issue.save
- assert_equal ["Database can't be blank"], issue.errors.full_messages
+ assert_equal ["Database cannot be blank"], issue.errors.full_messages
# Blank value
issue.custom_field_values = { field.id => '' }
assert !issue.save
- assert_equal ["Database can't be blank"], issue.errors.full_messages
+ assert_equal ["Database cannot be blank"], issue.errors.full_messages
# Invalid value
issue.custom_field_values = { field.id => 'SQLServer' }
assert !issue.save
@@ -826,13 +826,13 @@ class IssueTest < ActiveSupport::TestCase
assert_equal [cf.id.to_s, "category_id", "due_date"],
issue.required_attribute_names(user).sort
assert !issue.save, "Issue was saved"
- assert_equal ["Category can't be blank", "Due date can't be blank", "Foo can't be blank"],
+ assert_equal ["Category cannot be blank", "Due date cannot be blank", "Foo cannot be blank"],
issue.errors.full_messages.sort
issue.tracker_id = 2
assert_equal [cf.id.to_s, "start_date"], issue.required_attribute_names(user).sort
assert !issue.save, "Issue was saved"
- assert_equal ["Foo can't be blank", "Start date can't be blank"],
+ assert_equal ["Foo cannot be blank", "Start date cannot be blank"],
issue.errors.full_messages.sort
issue.start_date = Date.today
@@ -850,7 +850,7 @@ class IssueTest < ActiveSupport::TestCase
issue = Issue.new(:project_id => 1, :tracker_id => 1, :status_id => 1,
:subject => 'Required fields', :author => user)
assert !issue.save
- assert_include "Start date can't be blank", issue.errors.full_messages
+ assert_include "Start date cannot be blank", issue.errors.full_messages
tracker = Tracker.find(1)
tracker.core_fields -= %w(start_date)