enju_message 0.3.4 → 0.4.0.beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (86) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -3
  3. data/Rakefile +1 -1
  4. data/app/controllers/message_requests_controller.rb +2 -2
  5. data/app/models/message.rb +2 -2
  6. data/app/models/message_request.rb +3 -2
  7. data/app/models/message_request_transition.rb +2 -2
  8. data/app/models/message_template.rb +2 -2
  9. data/app/models/message_transition.rb +2 -2
  10. data/app/views/message_requests/edit.html.erb +3 -3
  11. data/app/views/message_requests/index.html.erb +2 -2
  12. data/app/views/message_requests/new.html.erb +1 -1
  13. data/app/views/message_requests/show.html.erb +2 -2
  14. data/db/migrate/149_create_message_templates.rb +8 -3
  15. data/db/migrate/154_create_messages.rb +8 -4
  16. data/db/migrate/20080819181903_create_message_requests.rb +7 -2
  17. data/db/migrate/20110913115320_add_lft_and_rgt_to_message.rb +7 -2
  18. data/db/migrate/20120125050502_add_depth_to_message.rb +2 -1
  19. data/db/migrate/20140518111006_create_message_transitions.rb +8 -3
  20. data/db/migrate/20140518135713_create_message_request_transitions.rb +8 -3
  21. data/db/migrate/20160703185015_add_most_recent_to_message_transitions.rb +1 -1
  22. data/db/migrate/20160814165332_add_most_recent_to_message_request_transitions.rb +1 -1
  23. data/db/migrate/20180107162659_add_constraints_to_most_recent_for_message_transitions.rb +1 -1
  24. data/db/migrate/20180107162711_add_constraints_to_most_recent_for_message_request_transitions.rb +1 -1
  25. data/lib/enju_message/version.rb +1 -1
  26. data/spec/controllers/messages_controller_spec.rb +1 -2
  27. data/spec/dummy/config/database.yml +70 -9
  28. data/spec/dummy/db/development.sqlite3 +0 -0
  29. data/spec/dummy/db/migrate/005_create_manifestations.rb +3 -3
  30. data/spec/dummy/db/migrate/113_create_events.rb +21 -0
  31. data/spec/dummy/db/migrate/114_create_event_categories.rb +16 -0
  32. data/spec/dummy/db/migrate/20081028093607_create_event_import_files.rb +23 -0
  33. data/spec/dummy/db/migrate/20090519203307_create_participates.rb +15 -0
  34. data/spec/dummy/db/migrate/20100925074639_create_event_import_results.rb +15 -0
  35. data/spec/dummy/db/migrate/20120413051535_add_event_import_fingerprint_to_event_import_file.rb +5 -0
  36. data/spec/dummy/db/migrate/20120413170734_add_error_message_to_event_import_file.rb +5 -0
  37. data/spec/dummy/db/migrate/20120415060342_rename_event_import_file_imported_at_to_executed_at.rb +9 -0
  38. data/spec/dummy/db/migrate/20140523171309_create_event_import_file_transitions.rb +18 -0
  39. data/spec/dummy/db/migrate/20140628071719_add_user_encoding_to_event_import_file.rb +5 -0
  40. data/spec/dummy/db/migrate/20140720192418_add_default_library_id_to_event_import_file.rb +5 -0
  41. data/spec/dummy/db/migrate/20140812152348_create_event_export_files.rb +11 -0
  42. data/spec/dummy/db/migrate/20140812153137_create_event_export_file_transitions.rb +18 -0
  43. data/spec/dummy/db/migrate/20140814070854_add_default_event_category_id_to_event_import_file.rb +5 -0
  44. data/spec/dummy/db/migrate/20151128142913_create_places.rb +14 -0
  45. data/spec/dummy/db/migrate/20151201163718_add_place_id_to_event.rb +5 -0
  46. data/spec/dummy/db/migrate/20151213070943_add_translation_table_to_library_group.rb +8 -0
  47. data/spec/dummy/db/migrate/20160703184258_add_most_recent_to_event_import_file_transitions.rb +9 -0
  48. data/spec/dummy/db/migrate/20160703184311_add_most_recent_to_event_export_file_transitions.rb +9 -0
  49. data/spec/dummy/db/migrate/20180107161311_add_constraints_to_most_recent_for_agent_import_file_transitions.rb +1 -1
  50. data/spec/dummy/db/migrate/20180107161331_add_constraints_to_most_recent_for_resource_import_file_transitions.rb +1 -1
  51. data/spec/dummy/db/migrate/20180107161347_add_constraints_to_most_recent_for_resource_export_file_transitions.rb +1 -1
  52. data/spec/dummy/db/migrate/20180107161410_add_constraints_to_most_recent_for_import_request_transitions.rb +1 -1
  53. data/spec/dummy/db/migrate/20180107164558_add_constraints_to_most_recent_for_event_import_file_transitions.rb +13 -0
  54. data/spec/dummy/db/migrate/20180107164617_add_constraints_to_most_recent_for_event_export_file_transitions.rb +13 -0
  55. data/spec/dummy/db/migrate/20181119170645_add_foreign_key_to_events_referencing_event_categories.rb +5 -0
  56. data/spec/dummy/db/migrate/20190102034126_create_doi_records.rb +13 -0
  57. data/spec/dummy/db/migrate/20190630113817_add_display_name_translations_to_library_group.rb +12 -0
  58. data/spec/dummy/db/migrate/{20181026064038_add_login_banner_to_library_group.rb → 20190630115523_add_login_banner_translations_to_library_group.rb} +1 -1
  59. data/spec/dummy/db/migrate/20190630151446_add_display_name_translations_to_role.rb +5 -0
  60. data/spec/dummy/db/migrate/20190630153136_add_display_name_translations_to_event.rb +6 -0
  61. data/spec/dummy/db/migrate/20190712163038_add_display_name_translations_to_carrier_type.rb +21 -0
  62. data/spec/dummy/db/schema.rb +265 -133
  63. data/spec/dummy/db/test.sqlite3 +0 -0
  64. data/spec/fixtures/agents.yml +29 -30
  65. data/spec/fixtures/libraries.yml +28 -30
  66. data/spec/fixtures/library_groups.yml +36 -19
  67. data/spec/fixtures/message_request_transitions.yml +2 -2
  68. data/spec/fixtures/message_requests.yml +3 -2
  69. data/spec/fixtures/message_templates.yml +2 -2
  70. data/spec/fixtures/messages.yml +3 -3
  71. data/spec/fixtures/roles.yml +22 -5
  72. data/spec/fixtures/shelves.yml +45 -0
  73. data/spec/fixtures/user_groups.yml +23 -5
  74. data/spec/fixtures/users.yml +1 -1
  75. data/spec/models/message_request_spec.rb +13 -3
  76. data/spec/models/message_spec.rb +2 -2
  77. data/spec/models/message_template_spec.rb +2 -2
  78. data/spec/rails_helper.rb +5 -1
  79. metadata +276 -302
  80. data/spec/dummy/app/jobs/application_job.rb +0 -7
  81. data/spec/dummy/db/migrate/20150421023923_create_identities.rb +0 -14
  82. data/spec/dummy/db/migrate/20151126005552_add_provider_to_identity.rb +0 -5
  83. data/spec/dummy/db/migrate/20170114174536_add_profile_id_to_user.rb +0 -5
  84. data/spec/dummy/db/migrate/20190818075603_add_memo_to_manifestation.rb +0 -5
  85. data/spec/dummy/db/migrate/20190818075628_add_memo_to_item.rb +0 -5
  86. data/spec/dummy/db/migrate/20191219122214_create_custom_properties.rb +0 -12
Binary file
@@ -276,51 +276,50 @@ agent_00202:
276
276
  #
277
277
  # Table name: agents
278
278
  #
279
- # id :integer not null, primary key
280
- # last_name :string(255)
281
- # middle_name :string(255)
282
- # first_name :string(255)
283
- # last_name_transcription :string(255)
284
- # middle_name_transcription :string(255)
285
- # first_name_transcription :string(255)
286
- # corporate_name :string(255)
287
- # corporate_name_transcription :string(255)
288
- # full_name :string(255)
279
+ # id :uuid not null, primary key
280
+ # last_name :string
281
+ # middle_name :string
282
+ # first_name :string
283
+ # last_name_transcription :string
284
+ # middle_name_transcription :string
285
+ # first_name_transcription :string
286
+ # corporate_name :string
287
+ # corporate_name_transcription :string
288
+ # full_name :string
289
289
  # full_name_transcription :text
290
290
  # full_name_alternative :text
291
- # created_at :datetime
292
- # updated_at :datetime
293
- # deleted_at :datetime
294
- # zip_code_1 :string(255)
295
- # zip_code_2 :string(255)
291
+ # created_at :datetime not null
292
+ # updated_at :datetime not null
293
+ # zip_code_1 :string
294
+ # zip_code_2 :string
296
295
  # address_1 :text
297
296
  # address_2 :text
298
297
  # address_1_note :text
299
298
  # address_2_note :text
300
- # telephone_number_1 :string(255)
301
- # telephone_number_2 :string(255)
302
- # fax_number_1 :string(255)
303
- # fax_number_2 :string(255)
299
+ # telephone_number_1 :string
300
+ # telephone_number_2 :string
301
+ # fax_number_1 :string
302
+ # fax_number_2 :string
304
303
  # other_designation :text
305
304
  # place :text
305
+ # postal_code :string
306
306
  # street :text
307
307
  # locality :text
308
308
  # region :text
309
309
  # date_of_birth :datetime
310
310
  # date_of_death :datetime
311
- # language_id :integer default(1), not null
312
- # country_id :integer default(1), not null
313
- # agent_type_id :integer default(1), not null
314
- # lock_version :integer default(0), not null
311
+ # language_id :integer default(1), not null
312
+ # country_id :integer default(1), not null
313
+ # agent_type_id :integer default(1), not null
314
+ # lock_version :integer default(0), not null
315
315
  # note :text
316
- # required_role_id :integer default(1), not null
317
- # required_score :integer default(0), not null
318
- # state :string(255)
316
+ # required_role_id :integer default(1), not null
317
+ # required_score :integer default(0), not null
319
318
  # email :text
320
319
  # url :text
321
320
  # full_name_alternative_transcription :text
322
- # title :string(255)
323
- # birth_date :string(255)
324
- # death_date :string(255)
321
+ # birth_date :string
322
+ # death_date :string
323
+ # agent_identifier :string
324
+ # profile_id :uuid
325
325
  #
326
-
@@ -2,7 +2,7 @@
2
2
  library_00001:
3
3
  name: web
4
4
  short_display_name: Web
5
- display_name: World Wide Web
5
+ display_name_translations: {"en": "World Wide Web", "ja": "ウェブ"}
6
6
  fax_number:
7
7
  updated_at: 2007-08-31 00:18:06.662349 +09:00
8
8
  telephone_number_1:
@@ -19,7 +19,7 @@ library_00001:
19
19
  library_00002:
20
20
  name: kamata
21
21
  short_display_name: 蒲田
22
- display_name: Kamata Library
22
+ display_name_translations: {"en": "Kamata Library", "ja": "蒲田図書館"}
23
23
  fax_number: ""
24
24
  updated_at: 2007-08-31 00:18:06.662349 +09:00
25
25
  telephone_number_1: 81-3-3732-5111
@@ -37,7 +37,7 @@ library_00002:
37
37
  library_00003:
38
38
  name: hachioji
39
39
  short_display_name: 八王子
40
- display_name: Hachioji Library
40
+ display_name_translations: {"en": "Hachioji Library", "ja": "八王子図書館"}
41
41
  fax_number: 042-637-2116
42
42
  updated_at: 2007-08-31 00:18:16.188285 +09:00
43
43
  telephone_number_1: 042-637-2033
@@ -54,7 +54,7 @@ library_00003:
54
54
  library_00004:
55
55
  name: mita
56
56
  short_display_name: 三田
57
- display_name: Mita Library
57
+ display_name_translations: {"en": "Mita Library", "ja": "三田図書館"}
58
58
  fax_number: ""
59
59
  updated_at: 2007-08-31 00:18:20.043951 +09:00
60
60
  telephone_number_1: ""
@@ -73,30 +73,28 @@ library_00004:
73
73
  #
74
74
  # Table name: libraries
75
75
  #
76
- # id :integer not null, primary key
77
- # name :string(255) not null
78
- # display_name :text
79
- # short_display_name :string(255) not null
80
- # zip_code :string(255)
81
- # street :text
82
- # locality :text
83
- # region :text
84
- # telephone_number_1 :string(255)
85
- # telephone_number_2 :string(255)
86
- # fax_number :string(255)
87
- # note :text
88
- # call_number_rows :integer default(1), not null
89
- # call_number_delimiter :string(255) default("|"), not null
90
- # library_group_id :integer default(1), not null
91
- # users_count :integer default(0), not null
92
- # position :integer
93
- # country_id :integer
94
- # created_at :datetime not null
95
- # updated_at :datetime not null
96
- # deleted_at :datetime
97
- # opening_hour :text
98
- # isil :string(255)
99
- # latitude :float
100
- # longitude :float
76
+ # id :uuid not null, primary key
77
+ # name :string not null
78
+ # display_name_translations :jsonb not null
79
+ # short_display_name :string not null
80
+ # zip_code :string
81
+ # street :text
82
+ # locality :text
83
+ # region :text
84
+ # telephone_number_1 :string
85
+ # telephone_number_2 :string
86
+ # fax_number :string
87
+ # note :text
88
+ # call_number_rows :integer default(1), not null
89
+ # call_number_delimiter :string default("|"), not null
90
+ # library_group_id :bigint(8) not null
91
+ # users_count :integer default(0), not null
92
+ # position :integer default(1), not null
93
+ # country_id :bigint(8)
94
+ # created_at :datetime not null
95
+ # updated_at :datetime not null
96
+ # opening_hour :text
97
+ # isil :string
98
+ # latitude :float
99
+ # longitude :float
101
100
  #
102
-
@@ -2,32 +2,49 @@
2
2
  one:
3
3
  id: 1
4
4
  name: enju_library
5
- display_name: "<%= I18n.locale %>: Enju Library"
6
- short_name: enju
5
+ display_name_translations: {"en": "Enju Library", "ja": "えんじゅ図書館"}
6
+ short_name: enju_library
7
7
  note:
8
- my_networks: 0.0.0.0/0
8
+ my_networks: "0.0.0.0/0\r\n\
9
+ ::/0"
9
10
  url: "http://localhost:3000/"
10
11
  position: 1
11
- old_login_banner: "*Next-L Enju*"
12
- admin_networks: 0.0.0.0/0
12
+ login_banner_translations: {"ja": "オープンソース図書館システム Next-L Enju です。このメッセージは管理者としてログインした後に変更することができます。",
13
+ "en": "Next-L Enju, an open-source integrated library system. You can edit this message after logging in as Administrator."}
14
+ footer_banner_translations: {"en":"[Next-L Enju Leaf __VERSION__](https://github.com/next-l/enju_leaf), an open source integrated library system | [About this system](/page/about) | [Report bugs](https://github.com/next-l/enju_leaf/issues) | [Manual](https://next-l.github.io/manual/1.3/)",
15
+ "ja":"[Next-L Enju Leaf __VERSION__](https://github.com/next-l/enju_leaf), オープンソース統合図書館システム | [このシステムについて](/page/about) | [不具合を報告する](https://github.com/next-l/enju_leaf/issues) | [マニュアル](https://next-l.github.io/manual/1.3/)"}
16
+ admin_networks: "0.0.0.0/0\r\n\
17
+ ::/0"
13
18
  user_id: 1
19
+ pub_year_facet_range_interval: 10
14
20
 
15
21
  # == Schema Information
16
22
  #
17
23
  # Table name: library_groups
18
24
  #
19
- # id :integer not null, primary key
20
- # name :string(255) not null
21
- # display_name :text
22
- # short_name :string(255) not null
23
- # my_networks :text
24
- # login_banner :text
25
- # note :text
26
- # country_id :integer
27
- # position :integer
28
- # created_at :datetime not null
29
- # updated_at :datetime not null
30
- # admin_networks :text
31
- # url :string(255) default("http://localhost:3000/")
25
+ # id :bigint(8) not null, primary key
26
+ # name :string not null
27
+ # display_name_translations :jsonb not null
28
+ # short_name :string not null
29
+ # my_networks :text
30
+ # old_login_banner :text
31
+ # note :text
32
+ # country_id :integer
33
+ # position :integer default(1), not null
34
+ # created_at :datetime not null
35
+ # updated_at :datetime not null
36
+ # admin_networks :text
37
+ # url :string default("http://localhost:3000/")
38
+ # settings :jsonb
39
+ # html_snippet :text
40
+ # book_jacket_source :string
41
+ # max_number_of_results :integer default(500)
42
+ # family_name_first :boolean default(TRUE)
43
+ # screenshot_generator :string
44
+ # pub_year_facet_range_interval :integer default(10)
45
+ # user_id :bigint(8)
46
+ # csv_charset_conversion :boolean default(FALSE), not null
47
+ # header_logo_meta :text
48
+ # login_banner_translations :jsonb not null
49
+ # footer_banner_translations :jsonb not null
32
50
  #
33
-
@@ -14,7 +14,7 @@ message_request_transition_00001:
14
14
  # metadata :text default({})
15
15
  # sort_key :integer
16
16
  # message_request_id :integer
17
- # created_at :datetime not null
18
- # updated_at :datetime not null
17
+ # created_at :datetime
18
+ # updated_at :datetime
19
19
  # most_recent :boolean not null
20
20
  #
@@ -19,7 +19,8 @@ two:
19
19
  # receiver_id :integer
20
20
  # message_template_id :integer
21
21
  # sent_at :datetime
22
+ # deleted_at :datetime
22
23
  # body :text
23
- # created_at :datetime not null
24
- # updated_at :datetime not null
24
+ # created_at :datetime
25
+ # updated_at :datetime
25
26
  #
@@ -93,6 +93,6 @@ message_template_00012:
93
93
  # body :text not null
94
94
  # position :integer
95
95
  # locale :string default("en")
96
- # created_at :datetime not null
97
- # updated_at :datetime not null
96
+ # created_at :datetime
97
+ # updated_at :datetime
98
98
  #
@@ -27,7 +27,7 @@ user1_to_librarian_2:
27
27
  lft: 5
28
28
  rgt: 6
29
29
  librarian2_to_user2:
30
- id: 6
30
+ id: 4
31
31
  sender_id: 4
32
32
  receiver_id: 5
33
33
  subject: 'Dad!'
@@ -48,8 +48,8 @@ librarian2_to_user2:
48
48
  # body :text
49
49
  # message_request_id :integer
50
50
  # parent_id :integer
51
- # created_at :datetime not null
52
- # updated_at :datetime not null
51
+ # created_at :datetime
52
+ # updated_at :datetime
53
53
  # lft :integer
54
54
  # rgt :integer
55
55
  # depth :integer
@@ -1,21 +1,38 @@
1
1
  ---
2
2
  role_00001:
3
3
  name: Guest
4
- display_name: Guest
4
+ display_name_translations: {"en": "Guest", "ja": "ゲスト"}
5
5
  id: 1
6
6
  note:
7
+ position: 1
7
8
  role_00002:
8
9
  name: User
9
- display_name: User
10
+ display_name_translations: {"en": "User", "ja": "一般利用者"}
10
11
  id: 2
11
12
  note:
13
+ position: 2
12
14
  role_00003:
13
15
  name: Librarian
14
- display_name: Librarian
16
+ display_name_translations: {"en": "Librarian", "ja": "図書館員"}
15
17
  id: 3
16
18
  note:
19
+ position: 3
17
20
  role_00004:
18
21
  name: Administrator
19
- display_name: Administrator
22
+ display_name_translations: {"en": "Administrator", "ja": "管理者"}
20
23
  id: 4
21
- note:
24
+ note:
25
+ position: 4
26
+
27
+ # == Schema Information
28
+ #
29
+ # Table name: roles
30
+ #
31
+ # id :bigint(8) not null, primary key
32
+ # name :string not null
33
+ # display_name_translations :jsonb not null
34
+ # note :text
35
+ # position :integer
36
+ # created_at :datetime not null
37
+ # updated_at :datetime not null
38
+ #
@@ -0,0 +1,45 @@
1
+ ---
2
+ shelf_00001:
3
+ name: web
4
+ display_name_translations: {"en": "Library bookmark", "ja": "ブックマーク"}
5
+ id: 1
6
+ note:
7
+ library_id: 1
8
+ position: 1
9
+ shelf_00002:
10
+ name: first_shelf
11
+ display_name_translations: {"en": "First shelf", "ja": "最初の書棚"}
12
+ id: 2
13
+ note:
14
+ library_id: 2
15
+ position: 2
16
+ shelf_00003:
17
+ name: second_shelf
18
+ display_name_translations: {"en": "Second shelf", "ja": "二つ目の書棚"}
19
+ id: 3
20
+ note:
21
+ library_id: 2
22
+ position: 3
23
+ shelf_00004:
24
+ name: third_shelf
25
+ display_name_translations: {"en": "Third shelf", "ja": "三つ目の書棚"}
26
+ id: 4
27
+ note:
28
+ library_id: 3
29
+ position: 4
30
+
31
+ # == Schema Information
32
+ #
33
+ # Table name: shelves
34
+ #
35
+ # id :uuid not null, primary key
36
+ # name :string not null
37
+ # display_name_translations :jsonb not null
38
+ # note :text
39
+ # library_id :uuid not null
40
+ # items_count :integer default(0), not null
41
+ # position :integer default(1), not null
42
+ # created_at :datetime not null
43
+ # updated_at :datetime not null
44
+ # closed :boolean default(FALSE), not null
45
+ #
@@ -1,25 +1,43 @@
1
1
  ---
2
2
  user_group_00001:
3
3
  name: not_specified
4
- display_name: (not specified)
4
+ display_name_translations: {"en": "(not specified)", "ja": "不明"}
5
5
  updated_at: 2007-12-13 21:00:51.564542 +09:00
6
6
  id: 1
7
7
  note: ""
8
8
  created_at: 2007-12-13 21:00:01.674976 +09:00
9
9
  position: 1
10
+ valid_period_for_new_user: 0
10
11
  user_group_00002:
11
- name: User
12
- display_name: User
12
+ name: user
13
+ display_name_translations: {"en": "User", "ja": "一般利用者"}
13
14
  updated_at: 2007-12-23 03:14:56.836548 +09:00
14
15
  id: 2
15
16
  note: ""
16
17
  created_at: 2007-12-23 03:14:40.173954 +09:00
17
18
  position: 2
19
+ valid_period_for_new_user: 365
18
20
  user_group_00003:
19
- name: Faculty
20
- display_name: Faculty
21
+ name: faculty
22
+ display_name_translations: {"en": "Faculty", "ja": "教職員"}
21
23
  updated_at: 2007-12-23 03:15:05.134351 +09:00
22
24
  id: 3
23
25
  note: ""
24
26
  created_at: 2007-12-23 03:15:05.126457 +09:00
25
27
  position: 3
28
+ valid_period_for_new_user: 730
29
+
30
+ # == Schema Information
31
+ #
32
+ # Table name: user_groups
33
+ #
34
+ # id :uuid not null, primary key
35
+ # name :string not null
36
+ # display_name_translations :jsonb not null
37
+ # note :text
38
+ # position :integer default(1), not null
39
+ # created_at :datetime not null
40
+ # updated_at :datetime not null
41
+ # valid_period_for_new_user :integer default(0), not null
42
+ # expired_at :datetime
43
+ #
@@ -3,7 +3,7 @@ admin:
3
3
  updated_at: 2008-05-31 13:16:30.163731 +09:00
4
4
  encrypted_password: $2a$10$vHohD1WflnTIqAa8zMkF9evwAgIZRw3XuR4d3bi29M.jph/MB/AJi
5
5
  id: 1
6
- username: admin
6
+ username: enjuadmin
7
7
  email: tanabe@kamata.lib.teu.ac.jp
8
8
  created_at: 2007-11-19 16:58:32.111941 +09:00
9
9
  librarian1:
@@ -1,7 +1,16 @@
1
1
  require 'rails_helper'
2
2
 
3
3
  describe MessageRequest do
4
- # pending "add some examples to (or delete) #{__FILE__}"
4
+ fixtures :all
5
+
6
+ before(:each) do
7
+ @message_request = FactoryBot.create(:message_request)
8
+ end
9
+
10
+ it 'should send_message' do
11
+ @message_request.send_message.should be_truthy
12
+ end
13
+
5
14
  end
6
15
 
7
16
  # == Schema Information
@@ -13,7 +22,8 @@ end
13
22
  # receiver_id :integer
14
23
  # message_template_id :integer
15
24
  # sent_at :datetime
25
+ # deleted_at :datetime
16
26
  # body :text
17
- # created_at :datetime not null
18
- # updated_at :datetime not null
27
+ # created_at :datetime
28
+ # updated_at :datetime
19
29
  #
@@ -54,8 +54,8 @@ end
54
54
  # body :text
55
55
  # message_request_id :integer
56
56
  # parent_id :integer
57
- # created_at :datetime not null
58
- # updated_at :datetime not null
57
+ # created_at :datetime
58
+ # updated_at :datetime
59
59
  # lft :integer
60
60
  # rgt :integer
61
61
  # depth :integer
@@ -14,6 +14,6 @@ end
14
14
  # body :text not null
15
15
  # position :integer
16
16
  # locale :string default("en")
17
- # created_at :datetime not null
18
- # updated_at :datetime not null
17
+ # created_at :datetime
18
+ # updated_at :datetime
19
19
  #
data/spec/rails_helper.rb CHANGED
@@ -1,7 +1,11 @@
1
1
  require 'simplecov'
2
2
  require 'coveralls'
3
+
4
+ SimpleCov.formatters = SimpleCov::Formatter::MultiFormatter.new([
5
+ SimpleCov::Formatter::HTMLFormatter,
6
+ Coveralls::SimpleCov::Formatter
7
+ ])
3
8
  SimpleCov.start 'rails'
4
- Coveralls.wear!
5
9
 
6
10
  # This file is copied to spec/ when you run 'rails generate rspec:install'
7
11
  ENV["RAILS_ENV"] ||= 'test'