Removed that quote in a fixture subject.

git-svn-id: http://svn.redmine.org/redmine/trunk@13775 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2014-12-20 14:22:50 +00:00
parent b35ed2ea2b
commit f86d4940e1
7 changed files with 18 additions and 18 deletions

View File

@@ -4,7 +4,7 @@ issues_001:
project_id: 1 project_id: 1
updated_on: <%= 1.day.ago.to_s(:db) %> updated_on: <%= 1.day.ago.to_s(:db) %>
priority_id: 4 priority_id: 4
subject: Can't print recipes subject: Cannot print recipes
id: 1 id: 1
fixed_version_id: fixed_version_id:
category_id: 1 category_id: 1

View File

@@ -51,7 +51,7 @@ class ActivitiesControllerTest < ActionController::TestCase
assert_not_nil assigns(:events_by_day) assert_not_nil assigns(:events_by_day)
assert_select 'h3', :text => /#{3.days.ago.to_date.day}/ assert_select 'h3', :text => /#{3.days.ago.to_date.day}/
assert_select 'dl dt.issue a', :text => /#{ESCAPED_UCANT} print recipes/ assert_select 'dl dt.issue a', :text => /Cannot print recipes/
end end
def test_global_index def test_global_index
@@ -81,7 +81,7 @@ class ActivitiesControllerTest < ActionController::TestCase
d1 = User.find(1).time_to_date(i1.created_on) d1 = User.find(1).time_to_date(i1.created_on)
assert_select 'h3', :text => /#{d1.day}/ assert_select 'h3', :text => /#{d1.day}/
assert_select 'dl dt.issue a', :text => /#{ESCAPED_UCANT} print recipes/ assert_select 'dl dt.issue a', :text => /Cannot print recipes/
end end
def test_user_index_with_invalid_user_id_should_respond_404 def test_user_index_with_invalid_user_id_should_respond_404

View File

@@ -60,7 +60,7 @@ class IssuesControllerTest < ActionController::TestCase
assert_nil assigns(:project) assert_nil assigns(:project)
# links to visible issues # links to visible issues
assert_select 'a[href="/issues/1"]', :text => /#{ESCAPED_UCANT} print recipes/ assert_select 'a[href="/issues/1"]', :text => /Cannot print recipes/
assert_select 'a[href="/issues/5"]', :text => /Subproject issue/ assert_select 'a[href="/issues/5"]', :text => /Subproject issue/
# private projects hidden # private projects hidden
assert_select 'a[href="/issues/6"]', 0 assert_select 'a[href="/issues/6"]', 0
@@ -96,7 +96,7 @@ class IssuesControllerTest < ActionController::TestCase
assert_template 'index' assert_template 'index'
assert_not_nil assigns(:issues) assert_not_nil assigns(:issues)
assert_select 'a[href="/issues/1"]', :text => /#{ESCAPED_UCANT} print recipes/ assert_select 'a[href="/issues/1"]', :text => /Cannot print recipes/
assert_select 'a[href="/issues/5"]', 0 assert_select 'a[href="/issues/5"]', 0
end end
@@ -107,7 +107,7 @@ class IssuesControllerTest < ActionController::TestCase
assert_template 'index' assert_template 'index'
assert_not_nil assigns(:issues) assert_not_nil assigns(:issues)
assert_select 'a[href="/issues/1"]', :text => /#{ESCAPED_UCANT} print recipes/ assert_select 'a[href="/issues/1"]', :text => /Cannot print recipes/
assert_select 'a[href="/issues/5"]', :text => /Subproject issue/ assert_select 'a[href="/issues/5"]', :text => /Subproject issue/
assert_select 'a[href="/issues/6"]', 0 assert_select 'a[href="/issues/6"]', 0
end end
@@ -120,7 +120,7 @@ class IssuesControllerTest < ActionController::TestCase
assert_template 'index' assert_template 'index'
assert_not_nil assigns(:issues) assert_not_nil assigns(:issues)
assert_select 'a[href="/issues/1"]', :text => /#{ESCAPED_UCANT} print recipes/ assert_select 'a[href="/issues/1"]', :text => /Cannot print recipes/
assert_select 'a[href="/issues/5"]', :text => /Subproject issue/ assert_select 'a[href="/issues/5"]', :text => /Subproject issue/
assert_select 'a[href="/issues/6"]', :text => /Issue of a private subproject/ assert_select 'a[href="/issues/6"]', :text => /Issue of a private subproject/
end end
@@ -900,7 +900,7 @@ class IssuesControllerTest < ActionController::TestCase
assert_select 'textarea[name=?]', 'issue[notes]' assert_select 'textarea[name=?]', 'issue[notes]'
end end
end end
assert_select 'title', :text => "Bug #1: #{ESCAPED_UCANT} print recipes - eCookbook - Redmine" assert_select 'title', :text => "Bug #1: Cannot print recipes - eCookbook - Redmine"
end end
def test_show_by_manager def test_show_by_manager
@@ -2363,7 +2363,7 @@ class IssuesControllerTest < ActionController::TestCase
:notes => 'just trying'} :notes => 'just trying'}
end end
issue = Issue.find(1) issue = Issue.find(1)
assert_equal "Can't print recipes", issue.subject assert_equal "Cannot print recipes", issue.subject
assert_nil issue.assigned_to assert_nil issue.assigned_to
end end

View File

@@ -945,7 +945,7 @@ RAW
result2 = link_to('#1', result2 = link_to('#1',
"/issues/1", "/issues/1",
:class => Issue.find(1).css_classes, :class => Issue.find(1).css_classes,
:title => "Can't print recipes (New)") :title => "Cannot print recipes (New)")
expected = <<-EXPECTED expected = <<-EXPECTED
<p>#{result1}</p> <p>#{result1}</p>

View File

@@ -215,9 +215,9 @@ class IssuesHelperTest < ActionView::TestCase
detail = JournalDetail.new(:property => 'relation', detail = JournalDetail.new(:property => 'relation',
:prop_key => 'precedes', :prop_key => 'precedes',
:value => 1) :value => 1)
assert_equal "Precedes Bug #1: Can't print recipes added", show_detail(detail, true) assert_equal "Precedes Bug #1: Cannot print recipes added", show_detail(detail, true)
str = link_to("Bug #1", "/issues/1", :class => Issue.find(1).css_classes) str = link_to("Bug #1", "/issues/1", :class => Issue.find(1).css_classes)
assert_equal "<strong>Precedes</strong> <i>#{str}: #{ESCAPED_UCANT} print recipes</i> added", assert_equal "<strong>Precedes</strong> <i>#{str}: Cannot print recipes</i> added",
show_detail(detail, false) show_detail(detail, false)
end end
@@ -245,11 +245,11 @@ class IssuesHelperTest < ActionView::TestCase
detail = JournalDetail.new(:property => 'relation', detail = JournalDetail.new(:property => 'relation',
:prop_key => 'precedes', :prop_key => 'precedes',
:old_value => 1) :old_value => 1)
assert_equal "Precedes deleted (Bug #1: Can't print recipes)", show_detail(detail, true) assert_equal "Precedes deleted (Bug #1: Cannot print recipes)", show_detail(detail, true)
str = link_to("Bug #1", str = link_to("Bug #1",
"/issues/1", "/issues/1",
:class => Issue.find(1).css_classes) :class => Issue.find(1).css_classes)
assert_equal "<strong>Precedes</strong> deleted (<i>#{str}: #{ESCAPED_UCANT} print recipes</i>)", assert_equal "<strong>Precedes</strong> deleted (<i>#{str}: Cannot print recipes</i>)",
show_detail(detail, false) show_detail(detail, false)
end end

View File

@@ -445,7 +445,7 @@ class IssueTest < ActiveSupport::TestCase
assert !issue.save assert !issue.save
issue.reload issue.reload
assert_equal "Can't print recipes", issue.subject assert_equal "Cannot print recipes", issue.subject
end end
def test_should_not_recreate_custom_values_objects_on_update def test_should_not_recreate_custom_values_objects_on_update

View File

@@ -56,7 +56,7 @@ class MailerTest < ActiveSupport::TestCase
# link to a referenced ticket # link to a referenced ticket
assert_select 'a[href=?][title=?]', assert_select 'a[href=?][title=?]',
'https://mydomain.foo/issues/1', 'https://mydomain.foo/issues/1',
"#{ESCAPED_UCANT} print recipes (New)", "Cannot print recipes (New)",
:text => '#1' :text => '#1'
# link to a changeset # link to a changeset
assert_select 'a[href=?][title=?]', assert_select 'a[href=?][title=?]',
@@ -95,7 +95,7 @@ class MailerTest < ActiveSupport::TestCase
# link to a referenced ticket # link to a referenced ticket
assert_select 'a[href=?][title=?]', assert_select 'a[href=?][title=?]',
'http://mydomain.foo/rdm/issues/1', 'http://mydomain.foo/rdm/issues/1',
"#{ESCAPED_UCANT} print recipes (New)", "Cannot print recipes (New)",
:text => '#1' :text => '#1'
# link to a changeset # link to a changeset
assert_select 'a[href=?][title=?]', assert_select 'a[href=?][title=?]',
@@ -145,7 +145,7 @@ class MailerTest < ActiveSupport::TestCase
# link to a referenced ticket # link to a referenced ticket
assert_select 'a[href=?][title=?]', assert_select 'a[href=?][title=?]',
'http://mydomain.foo/rdm/issues/1', 'http://mydomain.foo/rdm/issues/1',
"#{ESCAPED_UCANT} print recipes (New)", "Cannot print recipes (New)",
:text => '#1' :text => '#1'
# link to a changeset # link to a changeset
assert_select 'a[href=?][title=?]', assert_select 'a[href=?][title=?]',