@@ -0,0 +1,15 | |||||
|
1 | --- | |||
|
2 | journal_details_001: | |||
|
3 | old_value: "1" | |||
|
4 | property: attr | |||
|
5 | id: 1 | |||
|
6 | value: "2" | |||
|
7 | prop_key: status_id | |||
|
8 | journal_id: 1 | |||
|
9 | journal_details_002: | |||
|
10 | old_value: "40" | |||
|
11 | property: attr | |||
|
12 | id: 2 | |||
|
13 | value: "30" | |||
|
14 | prop_key: done_ratio | |||
|
15 | journal_id: 1 |
@@ -0,0 +1,8 | |||||
|
1 | --- | |||
|
2 | journals_001: | |||
|
3 | created_on: 2007-01-26 19:58:40 +01:00 | |||
|
4 | notes: "Journal notes" | |||
|
5 | id: 1 | |||
|
6 | journalized_type: Issue | |||
|
7 | user_id: 1 | |||
|
8 | journalized_id: 1 |
@@ -0,0 +1,63 | |||||
|
1 | # redMine - project management software | |||
|
2 | # Copyright (C) 2006-2007 Jean-Philippe Lang | |||
|
3 | # | |||
|
4 | # This program is free software; you can redistribute it and/or | |||
|
5 | # modify it under the terms of the GNU General Public License | |||
|
6 | # as published by the Free Software Foundation; either version 2 | |||
|
7 | # of the License, or (at your option) any later version. | |||
|
8 | # | |||
|
9 | # This program is distributed in the hope that it will be useful, | |||
|
10 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
|
11 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||
|
12 | # GNU General Public License for more details. | |||
|
13 | # | |||
|
14 | # You should have received a copy of the GNU General Public License | |||
|
15 | # along with this program; if not, write to the Free Software | |||
|
16 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
|
17 | ||||
|
18 | require File.dirname(__FILE__) + '/../test_helper' | |||
|
19 | ||||
|
20 | class MailerTest < Test::Unit::TestCase | |||
|
21 | fixtures :projects, :issues, :users, :members, :documents, :attachments, :tokens, :journals, :journal_details | |||
|
22 | ||||
|
23 | # test mailer methods for each language | |||
|
24 | def test_issue_add | |||
|
25 | issue = Issue.find(1) | |||
|
26 | GLoc.valid_languages.each do |lang| | |||
|
27 | Setting.default_language = lang | |||
|
28 | assert Mailer.deliver_issue_add(issue) | |||
|
29 | end | |||
|
30 | end | |||
|
31 | ||||
|
32 | def test_issue_edit | |||
|
33 | journal = Journal.find(1) | |||
|
34 | GLoc.valid_languages.each do |lang| | |||
|
35 | Setting.default_language = lang | |||
|
36 | assert Mailer.deliver_issue_edit(journal) | |||
|
37 | end | |||
|
38 | end | |||
|
39 | ||||
|
40 | def test_document_add | |||
|
41 | document = Document.find(1) | |||
|
42 | GLoc.valid_languages.each do |lang| | |||
|
43 | Setting.default_language = lang | |||
|
44 | assert Mailer.deliver_document_add(document) | |||
|
45 | end | |||
|
46 | end | |||
|
47 | ||||
|
48 | def test_lost_password | |||
|
49 | token = Token.find(2) | |||
|
50 | GLoc.valid_languages.each do |lang| | |||
|
51 | token.user.update_attribute :language, lang | |||
|
52 | assert Mailer.deliver_lost_password(token) | |||
|
53 | end | |||
|
54 | end | |||
|
55 | ||||
|
56 | def test_register | |||
|
57 | token = Token.find(1) | |||
|
58 | GLoc.valid_languages.each do |lang| | |||
|
59 | token.user.update_attribute :language, lang | |||
|
60 | assert Mailer.deliver_register(token) | |||
|
61 | end | |||
|
62 | end | |||
|
63 | end No newline at end of file |
@@ -1,2 +1,7 | |||||
1 | --- {} |
|
1 | documents_001: | |
2 |
|
2 | created_on: 2007-01-27 15:08:27 +01:00 | ||
|
3 | project_id: 1 | |||
|
4 | title: "Test document" | |||
|
5 | id: 1 | |||
|
6 | description: "Document description" | |||
|
7 | category_id: 1 No newline at end of file |
@@ -1,1 +1,13 | |||||
1 | --- |
|
1 | --- | |
|
2 | tokens_001: | |||
|
3 | created_on: 2007-01-21 00:39:12 +01:00 | |||
|
4 | action: register | |||
|
5 | id: 1 | |||
|
6 | value: DwMJ2yIxBNeAk26znMYzYmz5dAiIina0GFrPnGTM | |||
|
7 | user_id: 1 | |||
|
8 | tokens_002: | |||
|
9 | created_on: 2007-01-21 00:39:52 +01:00 | |||
|
10 | action: recovery | |||
|
11 | id: 2 | |||
|
12 | value: sahYSIaoYrsZUef86sTHrLISdznW6ApF36h5WSnm | |||
|
13 | user_id: 2 |
General Comments 0
You need to be logged in to leave comments.
Login now