tb_cms 1.2.0.beta1 → 1.2.0.beta3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (76) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/admin/menu_items_controller.rb +0 -3
  3. data/app/controllers/admin/menus_controller.rb +1 -6
  4. data/app/controllers/admin/pages_controller.rb +3 -7
  5. data/app/controllers/admin/snippets_controller.rb +0 -4
  6. data/app/controllers/cms/sitemaps_controller.rb +0 -4
  7. data/app/controllers/pages_controller.rb +3 -34
  8. data/app/helpers/cms/application_helper.rb +2 -18
  9. data/app/models/concerns/cms_deprecated_multisite.rb +21 -0
  10. data/app/models/spud_menu.rb +3 -3
  11. data/app/models/spud_page.rb +12 -20
  12. data/app/models/spud_snippet.rb +2 -3
  13. data/app/views/admin/menu_items/_form.html.erb +1 -1
  14. data/app/views/admin/pages/_form.html.erb +1 -1
  15. data/db/migrate/20121119030136_change_liquid_tags_to_polymorphic.rb +1 -3
  16. data/db/migrate/20150108162839_remove_site_id_from_cms_tables.rb +12 -0
  17. data/lib/spud_cms/engine.rb +0 -4
  18. data/lib/spud_cms/template_parser.rb +2 -30
  19. data/lib/spud_cms/version.rb +1 -1
  20. data/spec/{support/authlogic_helper.rb → authlogic_helper.rb} +1 -1
  21. data/spec/controllers/admin/menu_items_controller_spec.rb +28 -59
  22. data/spec/controllers/admin/menus_controller_spec.rb +32 -54
  23. data/spec/controllers/admin/pages_controller_spec.rb +26 -43
  24. data/spec/controllers/admin/snippets_controller_spec.rb +2 -2
  25. data/spec/controllers/pages_controller_spec.rb +11 -63
  26. data/spec/dummy/config/application.rb +5 -0
  27. data/spec/dummy/config/environments/production.rb +1 -1
  28. data/spec/dummy/config/environments/test.rb +1 -1
  29. data/spec/dummy/db/migrate/{20140110051458_create_spud_liquid_tags.tb_core.rb → 20141231214458_create_tb_liquid_spud_liquid_tags.tb_liquid.rb} +2 -2
  30. data/spec/dummy/db/migrate/{20140110051483_change_liquid_tags_to_polymorphic.tb_cms.rb → 20141231214480_change_liquid_tags_to_polymorphic.tb_cms.rb} +1 -3
  31. data/spec/dummy/db/migrate/{20140110051484_drop_spud_page_liquid_tags.tb_cms.rb → 20141231214481_drop_spud_page_liquid_tags.tb_cms.rb} +10 -8
  32. data/spec/dummy/db/migrate/20150108164814_remove_site_id_from_cms_tables.tb_cms.rb +13 -0
  33. data/spec/dummy/db/schema.rb +85 -93
  34. data/spec/helpers/cms/application_helper_spec.rb +23 -74
  35. data/spec/models/spud_menu_item_spec.rb +6 -6
  36. data/spec/models/spud_page_partial_revision_spec.rb +2 -2
  37. data/spec/models/spud_page_partial_spec.rb +9 -9
  38. data/spec/models/spud_page_spec.rb +20 -44
  39. data/spec/models/spud_snippet_spec.rb +2 -2
  40. data/spec/rails_helper.rb +72 -0
  41. data/spec/spec_helper.rb +77 -32
  42. metadata +104 -142
  43. data/spec/controllers/cms/sitemaps_controller_spec.rb +0 -41
  44. /data/spec/dummy/db/migrate/{20140110051449_create_spud_admin_permissions.tb_core.rb → 20141231214446_create_spud_admin_permissions.tb_core.rb} +0 -0
  45. /data/spec/dummy/db/migrate/{20140110051450_create_spud_users.tb_core.rb → 20141231214447_create_spud_users.tb_core.rb} +0 -0
  46. /data/spec/dummy/db/migrate/{20140110051451_add_time_zone_to_spud_user.tb_core.rb → 20141231214448_add_time_zone_to_spud_user.tb_core.rb} +0 -0
  47. /data/spec/dummy/db/migrate/{20140110051452_add_scope_to_spud_admin_permissions.tb_core.rb → 20141231214449_add_scope_to_spud_admin_permissions.tb_core.rb} +0 -0
  48. /data/spec/dummy/db/migrate/{20140110051453_create_spud_user_settings.tb_core.rb → 20141231214450_create_spud_user_settings.tb_core.rb} +0 -0
  49. /data/spec/dummy/db/migrate/{20140110051454_create_spud_roles.tb_core.rb → 20141231214451_create_spud_roles.tb_core.rb} +0 -0
  50. /data/spec/dummy/db/migrate/{20140110051455_create_spud_permissions.tb_core.rb → 20141231214452_create_spud_permissions.tb_core.rb} +0 -0
  51. /data/spec/dummy/db/migrate/{20140110051456_create_spud_role_permissions.tb_core.rb → 20141231214453_create_spud_role_permissions.tb_core.rb} +0 -0
  52. /data/spec/dummy/db/migrate/{20140110051457_drop_spud_admin_permissions.tb_core.rb → 20141231214454_drop_spud_admin_permissions.tb_core.rb} +0 -0
  53. /data/spec/dummy/db/migrate/{20140110051459_create_spud_permalinks.tb_permalinks.rb → 20141231214455_create_spud_permalinks.tb_permalinks.rb} +0 -0
  54. /data/spec/dummy/db/migrate/{20140110051460_add_site_id_to_spud_permalinks.tb_permalinks.rb → 20141231214456_add_site_id_to_spud_permalinks.tb_permalinks.rb} +0 -0
  55. /data/spec/dummy/db/migrate/{20140110051461_modify_site_id_for_spud_permalinks.tb_permalinks.rb → 20141231214457_modify_site_id_for_spud_permalinks.tb_permalinks.rb} +0 -0
  56. /data/spec/dummy/db/migrate/{20140110051462_create_spud_pages.tb_cms.rb → 20141231214459_create_spud_pages.tb_cms.rb} +0 -0
  57. /data/spec/dummy/db/migrate/{20140110051463_create_spud_menus.tb_cms.rb → 20141231214460_create_spud_menus.tb_cms.rb} +0 -0
  58. /data/spec/dummy/db/migrate/{20140110051464_create_spud_menu_items.tb_cms.rb → 20141231214461_create_spud_menu_items.tb_cms.rb} +0 -0
  59. /data/spec/dummy/db/migrate/{20140110051465_create_spud_templates.tb_cms.rb → 20141231214462_create_spud_templates.tb_cms.rb} +0 -0
  60. /data/spec/dummy/db/migrate/{20140110051466_create_spud_page_partials.tb_cms.rb → 20141231214463_create_spud_page_partials.tb_cms.rb} +0 -0
  61. /data/spec/dummy/db/migrate/{20140110051467_add_visibility_to_spud_pages.tb_cms.rb → 20141231214464_add_visibility_to_spud_pages.tb_cms.rb} +0 -0
  62. /data/spec/dummy/db/migrate/{20140110051468_add_menu_name_to_spud_menu_items.tb_cms.rb → 20141231214465_add_menu_name_to_spud_menu_items.tb_cms.rb} +0 -0
  63. /data/spec/dummy/db/migrate/{20140110051469_add_use_custom_url_name_to_spud_pages.tb_cms.rb → 20141231214466_add_use_custom_url_name_to_spud_pages.tb_cms.rb} +0 -0
  64. /data/spec/dummy/db/migrate/{20140110051470_add_notes_to_spud_pages.tb_cms.rb → 20141231214467_add_notes_to_spud_pages.tb_cms.rb} +0 -0
  65. /data/spec/dummy/db/migrate/{20140110051471_add_menu_id_to_spud_menu_items.tb_cms.rb → 20141231214468_add_menu_id_to_spud_menu_items.tb_cms.rb} +0 -0
  66. /data/spec/dummy/db/migrate/{20140110051472_add_classes_to_spud_menu_items.tb_cms.rb → 20141231214469_add_classes_to_spud_menu_items.tb_cms.rb} +0 -0
  67. /data/spec/dummy/db/migrate/{20140110051473_add_site_id_to_spud_pages.tb_cms.rb → 20141231214470_add_site_id_to_spud_pages.tb_cms.rb} +0 -0
  68. /data/spec/dummy/db/migrate/{20140110051474_add_site_id_to_spud_templates.tb_cms.rb → 20141231214471_add_site_id_to_spud_templates.tb_cms.rb} +0 -0
  69. /data/spec/dummy/db/migrate/{20140110051475_add_site_id_to_spud_menus.tb_cms.rb → 20141231214472_add_site_id_to_spud_menus.tb_cms.rb} +0 -0
  70. /data/spec/dummy/db/migrate/{20140110051476_create_spud_page_partial_revisions.tb_cms.rb → 20141231214473_create_spud_page_partial_revisions.tb_cms.rb} +0 -0
  71. /data/spec/dummy/db/migrate/{20140110051477_add_symbol_name_to_spud_page_partials.tb_cms.rb → 20141231214474_add_symbol_name_to_spud_page_partials.tb_cms.rb} +0 -0
  72. /data/spec/dummy/db/migrate/{20140110051478_modify_site_id_for_spud_pages.tb_cms.rb → 20141231214475_modify_site_id_for_spud_pages.tb_cms.rb} +0 -0
  73. /data/spec/dummy/db/migrate/{20140110051479_add_content_processed_to_spud_page_partials.tb_cms.rb → 20141231214476_add_content_processed_to_spud_page_partials.tb_cms.rb} +0 -0
  74. /data/spec/dummy/db/migrate/{20140110051480_add_layout_to_spud_pages.tb_cms.rb → 20141231214477_add_layout_to_spud_pages.tb_cms.rb} +0 -0
  75. /data/spec/dummy/db/migrate/{20140110051481_create_spud_page_liquid_tags.tb_cms.rb → 20141231214478_create_spud_page_liquid_tags.tb_cms.rb} +0 -0
  76. /data/spec/dummy/db/migrate/{20140110051482_create_spud_snippets.tb_cms.rb → 20141231214479_create_spud_snippets.tb_cms.rb} +0 -0
metadata CHANGED
@@ -1,43 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tb_cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0.beta1
4
+ version: 1.2.0.beta3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Westlake Design
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-29 00:00:00.000000000 Z
11
+ date: 2015-01-08 00:00:00.000000000 Z
12
12
  dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: rails
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - ">="
18
- - !ruby/object:Gem::Version
19
- version: '4.1'
20
- type: :runtime
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - ">="
25
- - !ruby/object:Gem::Version
26
- version: '4.1'
27
13
  - !ruby/object:Gem::Dependency
28
14
  name: tb_core
29
15
  requirement: !ruby/object:Gem::Requirement
30
16
  requirements:
31
- - - ">="
17
+ - - "~>"
32
18
  - !ruby/object:Gem::Version
33
- version: 1.3.0.beta1
19
+ version: 1.3.0
34
20
  type: :runtime
35
21
  prerelease: false
36
22
  version_requirements: !ruby/object:Gem::Requirement
37
23
  requirements:
38
- - - ">="
24
+ - - "~>"
39
25
  - !ruby/object:Gem::Version
40
- version: 1.3.0.beta1
26
+ version: 1.3.0
41
27
  - !ruby/object:Gem::Dependency
42
28
  name: tb_permalinks
43
29
  requirement: !ruby/object:Gem::Requirement
@@ -80,104 +66,76 @@ dependencies:
80
66
  - - ">="
81
67
  - !ruby/object:Gem::Version
82
68
  version: '0'
83
- - !ruby/object:Gem::Dependency
84
- name: rspec
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - '='
88
- - !ruby/object:Gem::Version
89
- version: 2.8.0
90
- type: :development
91
- prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - '='
95
- - !ruby/object:Gem::Version
96
- version: 2.8.0
97
69
  - !ruby/object:Gem::Dependency
98
70
  name: rspec-rails
99
- requirement: !ruby/object:Gem::Requirement
100
- requirements:
101
- - - '='
102
- - !ruby/object:Gem::Version
103
- version: 2.8.1
104
- type: :development
105
- prerelease: false
106
- version_requirements: !ruby/object:Gem::Requirement
107
- requirements:
108
- - - '='
109
- - !ruby/object:Gem::Version
110
- version: 2.8.1
111
- - !ruby/object:Gem::Dependency
112
- name: shoulda
113
71
  requirement: !ruby/object:Gem::Requirement
114
72
  requirements:
115
73
  - - "~>"
116
74
  - !ruby/object:Gem::Version
117
- version: 3.0.1
75
+ version: 3.1.0
118
76
  type: :development
119
77
  prerelease: false
120
78
  version_requirements: !ruby/object:Gem::Requirement
121
79
  requirements:
122
80
  - - "~>"
123
81
  - !ruby/object:Gem::Version
124
- version: 3.0.1
82
+ version: 3.1.0
125
83
  - !ruby/object:Gem::Dependency
126
- name: factory_girl
84
+ name: factory_girl_rails
127
85
  requirement: !ruby/object:Gem::Requirement
128
86
  requirements:
129
87
  - - "~>"
130
88
  - !ruby/object:Gem::Version
131
- version: '3.0'
89
+ version: 4.5.0
132
90
  type: :development
133
91
  prerelease: false
134
92
  version_requirements: !ruby/object:Gem::Requirement
135
93
  requirements:
136
94
  - - "~>"
137
95
  - !ruby/object:Gem::Version
138
- version: '3.0'
96
+ version: 4.5.0
139
97
  - !ruby/object:Gem::Dependency
140
- name: mocha
98
+ name: database_cleaner
141
99
  requirement: !ruby/object:Gem::Requirement
142
100
  requirements:
143
- - - '='
101
+ - - "~>"
144
102
  - !ruby/object:Gem::Version
145
- version: 0.10.3
103
+ version: 1.3.0
146
104
  type: :development
147
105
  prerelease: false
148
106
  version_requirements: !ruby/object:Gem::Requirement
149
107
  requirements:
150
- - - '='
108
+ - - "~>"
151
109
  - !ruby/object:Gem::Version
152
- version: 0.10.3
110
+ version: 1.3.0
153
111
  - !ruby/object:Gem::Dependency
154
- name: database_cleaner
112
+ name: simplecov
155
113
  requirement: !ruby/object:Gem::Requirement
156
114
  requirements:
157
- - - '='
115
+ - - "~>"
158
116
  - !ruby/object:Gem::Version
159
- version: 1.0.0.RC1
117
+ version: 0.9.1
160
118
  type: :development
161
119
  prerelease: false
162
120
  version_requirements: !ruby/object:Gem::Requirement
163
121
  requirements:
164
- - - '='
122
+ - - "~>"
165
123
  - !ruby/object:Gem::Version
166
- version: 1.0.0.RC1
124
+ version: 0.9.1
167
125
  - !ruby/object:Gem::Dependency
168
- name: simplecov
126
+ name: shoulda
169
127
  requirement: !ruby/object:Gem::Requirement
170
128
  requirements:
171
129
  - - "~>"
172
130
  - !ruby/object:Gem::Version
173
- version: 0.6.4
131
+ version: 3.5.0
174
132
  type: :development
175
133
  prerelease: false
176
134
  version_requirements: !ruby/object:Gem::Requirement
177
135
  requirements:
178
136
  - - "~>"
179
137
  - !ruby/object:Gem::Version
180
- version: 0.6.4
138
+ version: 3.5.0
181
139
  description: Content management engine for Twice Baked
182
140
  email:
183
141
  - greg@westlakedesign.com
@@ -203,6 +161,7 @@ files:
203
161
  - app/controllers/concerns/spud_cms_layout_actions.rb
204
162
  - app/controllers/pages_controller.rb
205
163
  - app/helpers/cms/application_helper.rb
164
+ - app/models/concerns/cms_deprecated_multisite.rb
206
165
  - app/models/spud_menu.rb
207
166
  - app/models/spud_menu_item.rb
208
167
  - app/models/spud_page.rb
@@ -257,6 +216,7 @@ files:
257
216
  - db/migrate/20121119025608_create_spud_snippets.rb
258
217
  - db/migrate/20121119030136_change_liquid_tags_to_polymorphic.rb
259
218
  - db/migrate/20140110142037_drop_spud_page_liquid_tags.rb
219
+ - db/migrate/20150108162839_remove_site_id_from_cms_tables.rb
260
220
  - lib/generators/spud/cms/layout_generator.rb
261
221
  - lib/generators/spud/cms/templates/layout.html.erb
262
222
  - lib/generators/spud/cms/templates/layout_actions.rb
@@ -269,11 +229,11 @@ files:
269
229
  - lib/spud_cms/version.rb
270
230
  - lib/tasks/spud_cms_tasks.rake
271
231
  - lib/tb_cms.rb
232
+ - spec/authlogic_helper.rb
272
233
  - spec/controllers/admin/menu_items_controller_spec.rb
273
234
  - spec/controllers/admin/menus_controller_spec.rb
274
235
  - spec/controllers/admin/pages_controller_spec.rb
275
236
  - spec/controllers/admin/snippets_controller_spec.rb
276
- - spec/controllers/cms/sitemaps_controller_spec.rb
277
237
  - spec/controllers/pages_controller_spec.rb
278
238
  - spec/dummy/README.rdoc
279
239
  - spec/dummy/Rakefile
@@ -299,42 +259,43 @@ files:
299
259
  - spec/dummy/config/initializers/wrap_parameters.rb
300
260
  - spec/dummy/config/locales/en.yml
301
261
  - spec/dummy/config/routes.rb
302
- - spec/dummy/db/migrate/20140110051449_create_spud_admin_permissions.tb_core.rb
303
- - spec/dummy/db/migrate/20140110051450_create_spud_users.tb_core.rb
304
- - spec/dummy/db/migrate/20140110051451_add_time_zone_to_spud_user.tb_core.rb
305
- - spec/dummy/db/migrate/20140110051452_add_scope_to_spud_admin_permissions.tb_core.rb
306
- - spec/dummy/db/migrate/20140110051453_create_spud_user_settings.tb_core.rb
307
- - spec/dummy/db/migrate/20140110051454_create_spud_roles.tb_core.rb
308
- - spec/dummy/db/migrate/20140110051455_create_spud_permissions.tb_core.rb
309
- - spec/dummy/db/migrate/20140110051456_create_spud_role_permissions.tb_core.rb
310
- - spec/dummy/db/migrate/20140110051457_drop_spud_admin_permissions.tb_core.rb
311
- - spec/dummy/db/migrate/20140110051458_create_spud_liquid_tags.tb_core.rb
312
- - spec/dummy/db/migrate/20140110051459_create_spud_permalinks.tb_permalinks.rb
313
- - spec/dummy/db/migrate/20140110051460_add_site_id_to_spud_permalinks.tb_permalinks.rb
314
- - spec/dummy/db/migrate/20140110051461_modify_site_id_for_spud_permalinks.tb_permalinks.rb
315
- - spec/dummy/db/migrate/20140110051462_create_spud_pages.tb_cms.rb
316
- - spec/dummy/db/migrate/20140110051463_create_spud_menus.tb_cms.rb
317
- - spec/dummy/db/migrate/20140110051464_create_spud_menu_items.tb_cms.rb
318
- - spec/dummy/db/migrate/20140110051465_create_spud_templates.tb_cms.rb
319
- - spec/dummy/db/migrate/20140110051466_create_spud_page_partials.tb_cms.rb
320
- - spec/dummy/db/migrate/20140110051467_add_visibility_to_spud_pages.tb_cms.rb
321
- - spec/dummy/db/migrate/20140110051468_add_menu_name_to_spud_menu_items.tb_cms.rb
322
- - spec/dummy/db/migrate/20140110051469_add_use_custom_url_name_to_spud_pages.tb_cms.rb
323
- - spec/dummy/db/migrate/20140110051470_add_notes_to_spud_pages.tb_cms.rb
324
- - spec/dummy/db/migrate/20140110051471_add_menu_id_to_spud_menu_items.tb_cms.rb
325
- - spec/dummy/db/migrate/20140110051472_add_classes_to_spud_menu_items.tb_cms.rb
326
- - spec/dummy/db/migrate/20140110051473_add_site_id_to_spud_pages.tb_cms.rb
327
- - spec/dummy/db/migrate/20140110051474_add_site_id_to_spud_templates.tb_cms.rb
328
- - spec/dummy/db/migrate/20140110051475_add_site_id_to_spud_menus.tb_cms.rb
329
- - spec/dummy/db/migrate/20140110051476_create_spud_page_partial_revisions.tb_cms.rb
330
- - spec/dummy/db/migrate/20140110051477_add_symbol_name_to_spud_page_partials.tb_cms.rb
331
- - spec/dummy/db/migrate/20140110051478_modify_site_id_for_spud_pages.tb_cms.rb
332
- - spec/dummy/db/migrate/20140110051479_add_content_processed_to_spud_page_partials.tb_cms.rb
333
- - spec/dummy/db/migrate/20140110051480_add_layout_to_spud_pages.tb_cms.rb
334
- - spec/dummy/db/migrate/20140110051481_create_spud_page_liquid_tags.tb_cms.rb
335
- - spec/dummy/db/migrate/20140110051482_create_spud_snippets.tb_cms.rb
336
- - spec/dummy/db/migrate/20140110051483_change_liquid_tags_to_polymorphic.tb_cms.rb
337
- - spec/dummy/db/migrate/20140110051484_drop_spud_page_liquid_tags.tb_cms.rb
262
+ - spec/dummy/db/migrate/20141231214446_create_spud_admin_permissions.tb_core.rb
263
+ - spec/dummy/db/migrate/20141231214447_create_spud_users.tb_core.rb
264
+ - spec/dummy/db/migrate/20141231214448_add_time_zone_to_spud_user.tb_core.rb
265
+ - spec/dummy/db/migrate/20141231214449_add_scope_to_spud_admin_permissions.tb_core.rb
266
+ - spec/dummy/db/migrate/20141231214450_create_spud_user_settings.tb_core.rb
267
+ - spec/dummy/db/migrate/20141231214451_create_spud_roles.tb_core.rb
268
+ - spec/dummy/db/migrate/20141231214452_create_spud_permissions.tb_core.rb
269
+ - spec/dummy/db/migrate/20141231214453_create_spud_role_permissions.tb_core.rb
270
+ - spec/dummy/db/migrate/20141231214454_drop_spud_admin_permissions.tb_core.rb
271
+ - spec/dummy/db/migrate/20141231214455_create_spud_permalinks.tb_permalinks.rb
272
+ - spec/dummy/db/migrate/20141231214456_add_site_id_to_spud_permalinks.tb_permalinks.rb
273
+ - spec/dummy/db/migrate/20141231214457_modify_site_id_for_spud_permalinks.tb_permalinks.rb
274
+ - spec/dummy/db/migrate/20141231214458_create_tb_liquid_spud_liquid_tags.tb_liquid.rb
275
+ - spec/dummy/db/migrate/20141231214459_create_spud_pages.tb_cms.rb
276
+ - spec/dummy/db/migrate/20141231214460_create_spud_menus.tb_cms.rb
277
+ - spec/dummy/db/migrate/20141231214461_create_spud_menu_items.tb_cms.rb
278
+ - spec/dummy/db/migrate/20141231214462_create_spud_templates.tb_cms.rb
279
+ - spec/dummy/db/migrate/20141231214463_create_spud_page_partials.tb_cms.rb
280
+ - spec/dummy/db/migrate/20141231214464_add_visibility_to_spud_pages.tb_cms.rb
281
+ - spec/dummy/db/migrate/20141231214465_add_menu_name_to_spud_menu_items.tb_cms.rb
282
+ - spec/dummy/db/migrate/20141231214466_add_use_custom_url_name_to_spud_pages.tb_cms.rb
283
+ - spec/dummy/db/migrate/20141231214467_add_notes_to_spud_pages.tb_cms.rb
284
+ - spec/dummy/db/migrate/20141231214468_add_menu_id_to_spud_menu_items.tb_cms.rb
285
+ - spec/dummy/db/migrate/20141231214469_add_classes_to_spud_menu_items.tb_cms.rb
286
+ - spec/dummy/db/migrate/20141231214470_add_site_id_to_spud_pages.tb_cms.rb
287
+ - spec/dummy/db/migrate/20141231214471_add_site_id_to_spud_templates.tb_cms.rb
288
+ - spec/dummy/db/migrate/20141231214472_add_site_id_to_spud_menus.tb_cms.rb
289
+ - spec/dummy/db/migrate/20141231214473_create_spud_page_partial_revisions.tb_cms.rb
290
+ - spec/dummy/db/migrate/20141231214474_add_symbol_name_to_spud_page_partials.tb_cms.rb
291
+ - spec/dummy/db/migrate/20141231214475_modify_site_id_for_spud_pages.tb_cms.rb
292
+ - spec/dummy/db/migrate/20141231214476_add_content_processed_to_spud_page_partials.tb_cms.rb
293
+ - spec/dummy/db/migrate/20141231214477_add_layout_to_spud_pages.tb_cms.rb
294
+ - spec/dummy/db/migrate/20141231214478_create_spud_page_liquid_tags.tb_cms.rb
295
+ - spec/dummy/db/migrate/20141231214479_create_spud_snippets.tb_cms.rb
296
+ - spec/dummy/db/migrate/20141231214480_change_liquid_tags_to_polymorphic.tb_cms.rb
297
+ - spec/dummy/db/migrate/20141231214481_drop_spud_page_liquid_tags.tb_cms.rb
298
+ - spec/dummy/db/migrate/20150108164814_remove_site_id_from_cms_tables.tb_cms.rb
338
299
  - spec/dummy/db/schema.rb
339
300
  - spec/dummy/public/404.html
340
301
  - spec/dummy/public/422.html
@@ -347,8 +308,8 @@ files:
347
308
  - spec/models/spud_page_partial_spec.rb
348
309
  - spec/models/spud_page_spec.rb
349
310
  - spec/models/spud_snippet_spec.rb
311
+ - spec/rails_helper.rb
350
312
  - spec/spec_helper.rb
351
- - spec/support/authlogic_helper.rb
352
313
  homepage: http://bitbucket.org/westlakedesign/tb_cms
353
314
  licenses: []
354
315
  metadata: {}
@@ -373,11 +334,11 @@ signing_key:
373
334
  specification_version: 4
374
335
  summary: Twice Baked CMS
375
336
  test_files:
337
+ - spec/authlogic_helper.rb
376
338
  - spec/controllers/admin/menu_items_controller_spec.rb
377
339
  - spec/controllers/admin/menus_controller_spec.rb
378
340
  - spec/controllers/admin/pages_controller_spec.rb
379
341
  - spec/controllers/admin/snippets_controller_spec.rb
380
- - spec/controllers/cms/sitemaps_controller_spec.rb
381
342
  - spec/controllers/pages_controller_spec.rb
382
343
  - spec/dummy/app/assets/javascripts/application.js
383
344
  - spec/dummy/app/assets/stylesheets/application.css
@@ -401,42 +362,43 @@ test_files:
401
362
  - spec/dummy/config/locales/en.yml
402
363
  - spec/dummy/config/routes.rb
403
364
  - spec/dummy/config.ru
404
- - spec/dummy/db/migrate/20140110051449_create_spud_admin_permissions.tb_core.rb
405
- - spec/dummy/db/migrate/20140110051450_create_spud_users.tb_core.rb
406
- - spec/dummy/db/migrate/20140110051451_add_time_zone_to_spud_user.tb_core.rb
407
- - spec/dummy/db/migrate/20140110051452_add_scope_to_spud_admin_permissions.tb_core.rb
408
- - spec/dummy/db/migrate/20140110051453_create_spud_user_settings.tb_core.rb
409
- - spec/dummy/db/migrate/20140110051454_create_spud_roles.tb_core.rb
410
- - spec/dummy/db/migrate/20140110051455_create_spud_permissions.tb_core.rb
411
- - spec/dummy/db/migrate/20140110051456_create_spud_role_permissions.tb_core.rb
412
- - spec/dummy/db/migrate/20140110051457_drop_spud_admin_permissions.tb_core.rb
413
- - spec/dummy/db/migrate/20140110051458_create_spud_liquid_tags.tb_core.rb
414
- - spec/dummy/db/migrate/20140110051459_create_spud_permalinks.tb_permalinks.rb
415
- - spec/dummy/db/migrate/20140110051460_add_site_id_to_spud_permalinks.tb_permalinks.rb
416
- - spec/dummy/db/migrate/20140110051461_modify_site_id_for_spud_permalinks.tb_permalinks.rb
417
- - spec/dummy/db/migrate/20140110051462_create_spud_pages.tb_cms.rb
418
- - spec/dummy/db/migrate/20140110051463_create_spud_menus.tb_cms.rb
419
- - spec/dummy/db/migrate/20140110051464_create_spud_menu_items.tb_cms.rb
420
- - spec/dummy/db/migrate/20140110051465_create_spud_templates.tb_cms.rb
421
- - spec/dummy/db/migrate/20140110051466_create_spud_page_partials.tb_cms.rb
422
- - spec/dummy/db/migrate/20140110051467_add_visibility_to_spud_pages.tb_cms.rb
423
- - spec/dummy/db/migrate/20140110051468_add_menu_name_to_spud_menu_items.tb_cms.rb
424
- - spec/dummy/db/migrate/20140110051469_add_use_custom_url_name_to_spud_pages.tb_cms.rb
425
- - spec/dummy/db/migrate/20140110051470_add_notes_to_spud_pages.tb_cms.rb
426
- - spec/dummy/db/migrate/20140110051471_add_menu_id_to_spud_menu_items.tb_cms.rb
427
- - spec/dummy/db/migrate/20140110051472_add_classes_to_spud_menu_items.tb_cms.rb
428
- - spec/dummy/db/migrate/20140110051473_add_site_id_to_spud_pages.tb_cms.rb
429
- - spec/dummy/db/migrate/20140110051474_add_site_id_to_spud_templates.tb_cms.rb
430
- - spec/dummy/db/migrate/20140110051475_add_site_id_to_spud_menus.tb_cms.rb
431
- - spec/dummy/db/migrate/20140110051476_create_spud_page_partial_revisions.tb_cms.rb
432
- - spec/dummy/db/migrate/20140110051477_add_symbol_name_to_spud_page_partials.tb_cms.rb
433
- - spec/dummy/db/migrate/20140110051478_modify_site_id_for_spud_pages.tb_cms.rb
434
- - spec/dummy/db/migrate/20140110051479_add_content_processed_to_spud_page_partials.tb_cms.rb
435
- - spec/dummy/db/migrate/20140110051480_add_layout_to_spud_pages.tb_cms.rb
436
- - spec/dummy/db/migrate/20140110051481_create_spud_page_liquid_tags.tb_cms.rb
437
- - spec/dummy/db/migrate/20140110051482_create_spud_snippets.tb_cms.rb
438
- - spec/dummy/db/migrate/20140110051483_change_liquid_tags_to_polymorphic.tb_cms.rb
439
- - spec/dummy/db/migrate/20140110051484_drop_spud_page_liquid_tags.tb_cms.rb
365
+ - spec/dummy/db/migrate/20141231214446_create_spud_admin_permissions.tb_core.rb
366
+ - spec/dummy/db/migrate/20141231214447_create_spud_users.tb_core.rb
367
+ - spec/dummy/db/migrate/20141231214448_add_time_zone_to_spud_user.tb_core.rb
368
+ - spec/dummy/db/migrate/20141231214449_add_scope_to_spud_admin_permissions.tb_core.rb
369
+ - spec/dummy/db/migrate/20141231214450_create_spud_user_settings.tb_core.rb
370
+ - spec/dummy/db/migrate/20141231214451_create_spud_roles.tb_core.rb
371
+ - spec/dummy/db/migrate/20141231214452_create_spud_permissions.tb_core.rb
372
+ - spec/dummy/db/migrate/20141231214453_create_spud_role_permissions.tb_core.rb
373
+ - spec/dummy/db/migrate/20141231214454_drop_spud_admin_permissions.tb_core.rb
374
+ - spec/dummy/db/migrate/20141231214455_create_spud_permalinks.tb_permalinks.rb
375
+ - spec/dummy/db/migrate/20141231214456_add_site_id_to_spud_permalinks.tb_permalinks.rb
376
+ - spec/dummy/db/migrate/20141231214457_modify_site_id_for_spud_permalinks.tb_permalinks.rb
377
+ - spec/dummy/db/migrate/20141231214458_create_tb_liquid_spud_liquid_tags.tb_liquid.rb
378
+ - spec/dummy/db/migrate/20141231214459_create_spud_pages.tb_cms.rb
379
+ - spec/dummy/db/migrate/20141231214460_create_spud_menus.tb_cms.rb
380
+ - spec/dummy/db/migrate/20141231214461_create_spud_menu_items.tb_cms.rb
381
+ - spec/dummy/db/migrate/20141231214462_create_spud_templates.tb_cms.rb
382
+ - spec/dummy/db/migrate/20141231214463_create_spud_page_partials.tb_cms.rb
383
+ - spec/dummy/db/migrate/20141231214464_add_visibility_to_spud_pages.tb_cms.rb
384
+ - spec/dummy/db/migrate/20141231214465_add_menu_name_to_spud_menu_items.tb_cms.rb
385
+ - spec/dummy/db/migrate/20141231214466_add_use_custom_url_name_to_spud_pages.tb_cms.rb
386
+ - spec/dummy/db/migrate/20141231214467_add_notes_to_spud_pages.tb_cms.rb
387
+ - spec/dummy/db/migrate/20141231214468_add_menu_id_to_spud_menu_items.tb_cms.rb
388
+ - spec/dummy/db/migrate/20141231214469_add_classes_to_spud_menu_items.tb_cms.rb
389
+ - spec/dummy/db/migrate/20141231214470_add_site_id_to_spud_pages.tb_cms.rb
390
+ - spec/dummy/db/migrate/20141231214471_add_site_id_to_spud_templates.tb_cms.rb
391
+ - spec/dummy/db/migrate/20141231214472_add_site_id_to_spud_menus.tb_cms.rb
392
+ - spec/dummy/db/migrate/20141231214473_create_spud_page_partial_revisions.tb_cms.rb
393
+ - spec/dummy/db/migrate/20141231214474_add_symbol_name_to_spud_page_partials.tb_cms.rb
394
+ - spec/dummy/db/migrate/20141231214475_modify_site_id_for_spud_pages.tb_cms.rb
395
+ - spec/dummy/db/migrate/20141231214476_add_content_processed_to_spud_page_partials.tb_cms.rb
396
+ - spec/dummy/db/migrate/20141231214477_add_layout_to_spud_pages.tb_cms.rb
397
+ - spec/dummy/db/migrate/20141231214478_create_spud_page_liquid_tags.tb_cms.rb
398
+ - spec/dummy/db/migrate/20141231214479_create_spud_snippets.tb_cms.rb
399
+ - spec/dummy/db/migrate/20141231214480_change_liquid_tags_to_polymorphic.tb_cms.rb
400
+ - spec/dummy/db/migrate/20141231214481_drop_spud_page_liquid_tags.tb_cms.rb
401
+ - spec/dummy/db/migrate/20150108164814_remove_site_id_from_cms_tables.tb_cms.rb
440
402
  - spec/dummy/db/schema.rb
441
403
  - spec/dummy/public/404.html
442
404
  - spec/dummy/public/422.html
@@ -451,5 +413,5 @@ test_files:
451
413
  - spec/models/spud_page_partial_spec.rb
452
414
  - spec/models/spud_page_spec.rb
453
415
  - spec/models/spud_snippet_spec.rb
416
+ - spec/rails_helper.rb
454
417
  - spec/spec_helper.rb
455
- - spec/support/authlogic_helper.rb
@@ -1,41 +0,0 @@
1
- require 'spec_helper'
2
-
3
- describe Cms::SitemapsController do
4
- describe :show do
5
- before(:each) do
6
- Spud::Core.configure do |config|
7
- config.site_name = "Test Site"
8
- config.multisite_mode_enabled = false
9
- config.multisite_config = []
10
- end
11
- end
12
-
13
- it "should return the sitemap urls" do
14
- get :show, :format => :xml
15
- assigns(:pages).should == SpudPage.published_pages.viewable.order(:spud_page_id)
16
- end
17
-
18
- it "should only respond to an XML format" do
19
- get :show, :format => :html
20
- response.response_code.should == 404
21
- end
22
-
23
- describe :multisite do
24
- before(:each) do
25
- Spud::Core.configure do |config|
26
- config.site_name = "Test Site"
27
- config.multisite_mode_enabled = true
28
- config.multisite_config = [{:hosts => ["test.host"], :site_name =>"Site B", :site_id => 1}]
29
- end
30
- end
31
-
32
- it "should only assign pages for current site" do
33
- 2.times {|x| FactoryGirl.create(:spud_page) }
34
- 3.times {|x| FactoryGirl.create(:spud_page,:site_id => 1) }
35
- get :show, :format => :xml
36
- assigns(:pages).should == SpudPage.published_pages.viewable.order(:spud_page_id).site(1)
37
- end
38
-
39
- end
40
- end
41
- end