tb_core 1.3.0.beta2 → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (72) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/admin/core/application.js +0 -3
  3. data/app/assets/stylesheets/admin/core/application.css.scss +6 -0
  4. data/app/controllers/admin/application_controller.rb +1 -32
  5. data/app/controllers/admin/dashboard_controller.rb +1 -17
  6. data/app/controllers/admin/password_resets_controller.rb +1 -1
  7. data/app/controllers/password_resets_controller.rb +1 -1
  8. data/app/controllers/spud/application_controller.rb +3 -21
  9. data/app/helpers/admin/application_helper.rb +0 -18
  10. data/app/helpers/spud/application_helper.rb +1 -13
  11. data/app/models/spud_user_session.rb +5 -0
  12. data/app/views/admin/dashboard/index.html.erb +1 -1
  13. data/app/views/admin/users/index.html.erb +3 -17
  14. data/app/views/layouts/admin/_search.html.erb +13 -0
  15. data/app/views/layouts/admin/application.html.erb +1 -1
  16. data/config/routes.rb +0 -4
  17. data/lib/generators/spud/module_generator.rb +5 -4
  18. data/lib/generators/spud/templates/views/admin/index.html.erb +2 -16
  19. data/lib/generators/spud/templates/views/admin/show.html.erb +1 -2
  20. data/lib/spud_core/configuration.rb +2 -27
  21. data/lib/spud_core/engine.rb +1 -1
  22. data/lib/spud_core/errors.rb +4 -2
  23. data/lib/spud_core/version.rb +1 -1
  24. data/lib/tb_core/form_builder.rb +3 -4
  25. data/spec/{support/authlogic_helper.rb → authlogic_helper.rb} +0 -0
  26. data/spec/controllers/admin/application_controller_spec.rb +8 -12
  27. data/spec/controllers/admin/dashboard_controller_spec.rb +13 -81
  28. data/spec/controllers/admin/password_reset_controller_spec.rb +28 -33
  29. data/spec/controllers/admin/settings_controller_spec.rb +7 -7
  30. data/spec/controllers/admin/setup_controller_spec.rb +10 -17
  31. data/spec/controllers/admin/user_sessions_controller_spec.rb +11 -11
  32. data/spec/controllers/admin/users_controller_spec.rb +40 -65
  33. data/spec/controllers/spud/application_controller_spec.rb +5 -5
  34. data/spec/dummy/app/assets/javascripts/admin/application.js +16 -0
  35. data/spec/dummy/app/assets/javascripts/application.js +16 -13
  36. data/spec/dummy/app/assets/stylesheets/admin/application.css.scss +3 -0
  37. data/spec/dummy/app/assets/stylesheets/application.css.scss +5 -0
  38. data/spec/dummy/app/controllers/application_controller.rb +1 -1
  39. data/spec/dummy/app/views/layouts/application.html.erb +22 -3
  40. data/spec/dummy/config/application.rb +5 -0
  41. data/spec/dummy/config/environments/production.rb +1 -1
  42. data/spec/dummy/config/environments/test.rb +1 -1
  43. data/spec/dummy/db/migrate/20141214200804_create_spud_admin_permissions.tb_core.rb +12 -0
  44. data/spec/dummy/db/migrate/20141214200805_create_spud_users.tb_core.rb +30 -0
  45. data/spec/dummy/db/migrate/20141214200806_add_time_zone_to_spud_user.tb_core.rb +7 -0
  46. data/spec/dummy/db/migrate/20141214200807_add_scope_to_spud_admin_permissions.tb_core.rb +7 -0
  47. data/spec/dummy/db/migrate/20141214200808_create_spud_user_settings.tb_core.rb +12 -0
  48. data/spec/dummy/db/migrate/20141214200809_create_spud_roles.tb_core.rb +11 -0
  49. data/spec/dummy/db/migrate/20141214200810_create_spud_permissions.tb_core.rb +11 -0
  50. data/spec/dummy/db/migrate/20141214200811_create_spud_role_permissions.tb_core.rb +12 -0
  51. data/spec/dummy/db/migrate/20141214200812_drop_spud_admin_permissions.tb_core.rb +16 -0
  52. data/spec/dummy/db/schema.rb +47 -47
  53. data/spec/factories/spud_admin_permission_factories.rb +10 -0
  54. data/spec/factories/spud_role_factories.rb +9 -0
  55. data/spec/factories/spud_user_factories.rb +31 -0
  56. data/spec/helpers/spud/admin/application_helper_spec.rb +11 -119
  57. data/spec/helpers/spud/application_helper_spec.rb +4 -59
  58. data/spec/lib/spud_core/configuration_spec.rb +1 -22
  59. data/spec/models/spud_role_spec.rb +8 -8
  60. data/spec/models/spud_user_spec.rb +8 -8
  61. data/spec/rails_helper.rb +72 -0
  62. data/spec/spec_helper.rb +78 -36
  63. metadata +93 -118
  64. data/app/controllers/sitemaps_controller.rb +0 -7
  65. data/app/views/sitemaps/show.xml.builder +0 -12
  66. data/spec/controllers/sitemap_controllers_spec.rb +0 -15
  67. data/spec/dummy/app/assets/stylesheets/application.css +0 -13
  68. data/spec/integration/admin_setup_spec.rb +0 -8
  69. data/spec/javascripts/date_picker_spec.js +0 -8
  70. data/spec/javascripts/support/jasmine.yml +0 -88
  71. data/spec/javascripts/support/jasmine_helper.rb +0 -11
  72. data/spec/views/layouts/admin/application.html.erb_spec.rb +0 -20
metadata CHANGED
@@ -1,43 +1,57 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tb_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0.beta2
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Greg Woods
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-24 00:00:00.000000000 Z
11
+ date: 2015-01-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '4.0'
19
+ version: 4.2.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ">="
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '4.0'
26
+ version: 4.2.0
27
+ - !ruby/object:Gem::Dependency
28
+ name: responders
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '2.0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '2.0'
27
41
  - !ruby/object:Gem::Dependency
28
42
  name: authlogic
29
43
  requirement: !ruby/object:Gem::Requirement
30
44
  requirements:
31
45
  - - "~>"
32
46
  - !ruby/object:Gem::Version
33
- version: 3.4.2
47
+ version: 3.4.3
34
48
  type: :runtime
35
49
  prerelease: false
36
50
  version_requirements: !ruby/object:Gem::Requirement
37
51
  requirements:
38
52
  - - "~>"
39
53
  - !ruby/object:Gem::Version
40
- version: 3.4.2
54
+ version: 3.4.3
41
55
  - !ruby/object:Gem::Dependency
42
56
  name: scrypt
43
57
  requirement: !ruby/object:Gem::Requirement
@@ -84,58 +98,58 @@ dependencies:
84
98
  name: will_paginate
85
99
  requirement: !ruby/object:Gem::Requirement
86
100
  requirements:
87
- - - ">="
101
+ - - "~>"
88
102
  - !ruby/object:Gem::Version
89
- version: '0'
103
+ version: 3.0.7
90
104
  type: :runtime
91
105
  prerelease: false
92
106
  version_requirements: !ruby/object:Gem::Requirement
93
107
  requirements:
94
- - - ">="
108
+ - - "~>"
95
109
  - !ruby/object:Gem::Version
96
- version: '0'
110
+ version: 3.0.7
97
111
  - !ruby/object:Gem::Dependency
98
112
  name: will_paginate-bootstrap
99
113
  requirement: !ruby/object:Gem::Requirement
100
114
  requirements:
101
- - - ">="
115
+ - - "~>"
102
116
  - !ruby/object:Gem::Version
103
- version: '0'
117
+ version: 1.0.1
104
118
  type: :runtime
105
119
  prerelease: false
106
120
  version_requirements: !ruby/object:Gem::Requirement
107
121
  requirements:
108
- - - ">="
122
+ - - "~>"
109
123
  - !ruby/object:Gem::Version
110
- version: '0'
124
+ version: 1.0.1
111
125
  - !ruby/object:Gem::Dependency
112
126
  name: bootstrap-sass
113
127
  requirement: !ruby/object:Gem::Requirement
114
128
  requirements:
115
- - - ">="
129
+ - - "~>"
116
130
  - !ruby/object:Gem::Version
117
- version: '0'
131
+ version: '3.3'
118
132
  type: :runtime
119
133
  prerelease: false
120
134
  version_requirements: !ruby/object:Gem::Requirement
121
135
  requirements:
122
- - - ">="
136
+ - - "~>"
123
137
  - !ruby/object:Gem::Version
124
- version: '0'
138
+ version: '3.3'
125
139
  - !ruby/object:Gem::Dependency
126
140
  name: sass-rails
127
141
  requirement: !ruby/object:Gem::Requirement
128
142
  requirements:
129
- - - ">="
143
+ - - "~>"
130
144
  - !ruby/object:Gem::Version
131
- version: 4.0.4
145
+ version: '5.0'
132
146
  type: :runtime
133
147
  prerelease: false
134
148
  version_requirements: !ruby/object:Gem::Requirement
135
149
  requirements:
136
- - - ">="
150
+ - - "~>"
137
151
  - !ruby/object:Gem::Version
138
- version: 4.0.4
152
+ version: '5.0'
139
153
  - !ruby/object:Gem::Dependency
140
154
  name: autoprefixer-rails
141
155
  requirement: !ruby/object:Gem::Requirement
@@ -156,14 +170,14 @@ dependencies:
156
170
  requirements:
157
171
  - - "~>"
158
172
  - !ruby/object:Gem::Version
159
- version: 4.1.3
173
+ version: 4.1.6
160
174
  type: :runtime
161
175
  prerelease: false
162
176
  version_requirements: !ruby/object:Gem::Requirement
163
177
  requirements:
164
178
  - - "~>"
165
179
  - !ruby/object:Gem::Version
166
- version: 4.1.3
180
+ version: 4.1.6
167
181
  - !ruby/object:Gem::Dependency
168
182
  name: mysql2
169
183
  requirement: !ruby/object:Gem::Requirement
@@ -178,132 +192,76 @@ dependencies:
178
192
  - - ">="
179
193
  - !ruby/object:Gem::Version
180
194
  version: '0'
181
- - !ruby/object:Gem::Dependency
182
- name: rspec
183
- requirement: !ruby/object:Gem::Requirement
184
- requirements:
185
- - - '='
186
- - !ruby/object:Gem::Version
187
- version: 2.8.0
188
- type: :development
189
- prerelease: false
190
- version_requirements: !ruby/object:Gem::Requirement
191
- requirements:
192
- - - '='
193
- - !ruby/object:Gem::Version
194
- version: 2.8.0
195
195
  - !ruby/object:Gem::Dependency
196
196
  name: rspec-rails
197
- requirement: !ruby/object:Gem::Requirement
198
- requirements:
199
- - - '='
200
- - !ruby/object:Gem::Version
201
- version: 2.8.1
202
- type: :development
203
- prerelease: false
204
- version_requirements: !ruby/object:Gem::Requirement
205
- requirements:
206
- - - '='
207
- - !ruby/object:Gem::Version
208
- version: 2.8.1
209
- - !ruby/object:Gem::Dependency
210
- name: shoulda
211
197
  requirement: !ruby/object:Gem::Requirement
212
198
  requirements:
213
199
  - - "~>"
214
200
  - !ruby/object:Gem::Version
215
- version: 3.0.1
201
+ version: 3.1.0
216
202
  type: :development
217
203
  prerelease: false
218
204
  version_requirements: !ruby/object:Gem::Requirement
219
205
  requirements:
220
206
  - - "~>"
221
207
  - !ruby/object:Gem::Version
222
- version: 3.0.1
208
+ version: 3.1.0
223
209
  - !ruby/object:Gem::Dependency
224
- name: factory_girl
210
+ name: factory_girl_rails
225
211
  requirement: !ruby/object:Gem::Requirement
226
212
  requirements:
227
213
  - - "~>"
228
214
  - !ruby/object:Gem::Version
229
- version: '3.0'
215
+ version: 4.5.0
230
216
  type: :development
231
217
  prerelease: false
232
218
  version_requirements: !ruby/object:Gem::Requirement
233
219
  requirements:
234
220
  - - "~>"
235
221
  - !ruby/object:Gem::Version
236
- version: '3.0'
237
- - !ruby/object:Gem::Dependency
238
- name: mocha
239
- requirement: !ruby/object:Gem::Requirement
240
- requirements:
241
- - - '='
242
- - !ruby/object:Gem::Version
243
- version: 0.10.3
244
- type: :development
245
- prerelease: false
246
- version_requirements: !ruby/object:Gem::Requirement
247
- requirements:
248
- - - '='
249
- - !ruby/object:Gem::Version
250
- version: 0.10.3
222
+ version: 4.5.0
251
223
  - !ruby/object:Gem::Dependency
252
224
  name: database_cleaner
253
225
  requirement: !ruby/object:Gem::Requirement
254
226
  requirements:
255
- - - '='
227
+ - - "~>"
256
228
  - !ruby/object:Gem::Version
257
- version: 1.0.0.RC1
229
+ version: 1.3.0
258
230
  type: :development
259
231
  prerelease: false
260
232
  version_requirements: !ruby/object:Gem::Requirement
261
233
  requirements:
262
- - - '='
234
+ - - "~>"
263
235
  - !ruby/object:Gem::Version
264
- version: 1.0.0.RC1
236
+ version: 1.3.0
265
237
  - !ruby/object:Gem::Dependency
266
238
  name: simplecov
267
239
  requirement: !ruby/object:Gem::Requirement
268
240
  requirements:
269
241
  - - "~>"
270
242
  - !ruby/object:Gem::Version
271
- version: 0.6.4
243
+ version: 0.9.1
272
244
  type: :development
273
245
  prerelease: false
274
246
  version_requirements: !ruby/object:Gem::Requirement
275
247
  requirements:
276
248
  - - "~>"
277
249
  - !ruby/object:Gem::Version
278
- version: 0.6.4
250
+ version: 0.9.1
279
251
  - !ruby/object:Gem::Dependency
280
- name: capybara
281
- requirement: !ruby/object:Gem::Requirement
282
- requirements:
283
- - - '='
284
- - !ruby/object:Gem::Version
285
- version: 2.0.1
286
- type: :development
287
- prerelease: false
288
- version_requirements: !ruby/object:Gem::Requirement
289
- requirements:
290
- - - '='
291
- - !ruby/object:Gem::Version
292
- version: 2.0.1
293
- - !ruby/object:Gem::Dependency
294
- name: jasmine
252
+ name: shoulda
295
253
  requirement: !ruby/object:Gem::Requirement
296
254
  requirements:
297
- - - ">="
255
+ - - "~>"
298
256
  - !ruby/object:Gem::Version
299
- version: '0'
257
+ version: 3.5.0
300
258
  type: :development
301
259
  prerelease: false
302
260
  version_requirements: !ruby/object:Gem::Requirement
303
261
  requirements:
304
- - - ">="
262
+ - - "~>"
305
263
  - !ruby/object:Gem::Version
306
- version: '0'
264
+ version: 3.5.0
307
265
  description: Twice Baked Core Engine
308
266
  email:
309
267
  - greg@westlakedesign.com
@@ -361,7 +319,6 @@ files:
361
319
  - app/controllers/admin/user_sessions_controller.rb
362
320
  - app/controllers/admin/users_controller.rb
363
321
  - app/controllers/password_resets_controller.rb
364
- - app/controllers/sitemaps_controller.rb
365
322
  - app/controllers/spud/admin/application_controller.rb
366
323
  - app/controllers/spud/application_controller.rb
367
324
  - app/controllers/user_sessions_controller.rb
@@ -399,6 +356,7 @@ files:
399
356
  - app/views/core_mailer/forgot_password_notification.html.erb
400
357
  - app/views/core_mailer/forgot_password_notification.text.erb
401
358
  - app/views/layouts/admin/_flashes.html.erb
359
+ - app/views/layouts/admin/_search.html.erb
402
360
  - app/views/layouts/admin/application.html.erb
403
361
  - app/views/layouts/admin/detail.html.erb
404
362
  - app/views/layouts/admin/error_page.html.erb
@@ -408,7 +366,6 @@ files:
408
366
  - app/views/layouts/user_sessions.html.erb
409
367
  - app/views/password_resets/index.html.erb
410
368
  - app/views/password_resets/show.html.erb
411
- - app/views/sitemaps/show.xml.builder
412
369
  - app/views/user_sessions/new.html.erb
413
370
  - config/locales/en.yml
414
371
  - config/routes.rb
@@ -453,6 +410,7 @@ files:
453
410
  - lib/tasks/spud_core_tasks.rake
454
411
  - lib/tb_core.rb
455
412
  - lib/tb_core/form_builder.rb
413
+ - spec/authlogic_helper.rb
456
414
  - spec/controllers/admin/application_controller_spec.rb
457
415
  - spec/controllers/admin/dashboard_controller_spec.rb
458
416
  - spec/controllers/admin/password_reset_controller_spec.rb
@@ -460,12 +418,13 @@ files:
460
418
  - spec/controllers/admin/setup_controller_spec.rb
461
419
  - spec/controllers/admin/user_sessions_controller_spec.rb
462
420
  - spec/controllers/admin/users_controller_spec.rb
463
- - spec/controllers/sitemap_controllers_spec.rb
464
421
  - spec/controllers/spud/application_controller_spec.rb
465
422
  - spec/dummy/README.rdoc
466
423
  - spec/dummy/Rakefile
424
+ - spec/dummy/app/assets/javascripts/admin/application.js
467
425
  - spec/dummy/app/assets/javascripts/application.js
468
- - spec/dummy/app/assets/stylesheets/application.css
426
+ - spec/dummy/app/assets/stylesheets/admin/application.css.scss
427
+ - spec/dummy/app/assets/stylesheets/application.css.scss
469
428
  - spec/dummy/app/controllers/application_controller.rb
470
429
  - spec/dummy/app/helpers/application_helper.rb
471
430
  - spec/dummy/app/views/layouts/application.html.erb
@@ -485,24 +444,31 @@ files:
485
444
  - spec/dummy/config/initializers/wrap_parameters.rb
486
445
  - spec/dummy/config/locales/en.yml
487
446
  - spec/dummy/config/routes.rb
447
+ - spec/dummy/db/migrate/20141214200804_create_spud_admin_permissions.tb_core.rb
448
+ - spec/dummy/db/migrate/20141214200805_create_spud_users.tb_core.rb
449
+ - spec/dummy/db/migrate/20141214200806_add_time_zone_to_spud_user.tb_core.rb
450
+ - spec/dummy/db/migrate/20141214200807_add_scope_to_spud_admin_permissions.tb_core.rb
451
+ - spec/dummy/db/migrate/20141214200808_create_spud_user_settings.tb_core.rb
452
+ - spec/dummy/db/migrate/20141214200809_create_spud_roles.tb_core.rb
453
+ - spec/dummy/db/migrate/20141214200810_create_spud_permissions.tb_core.rb
454
+ - spec/dummy/db/migrate/20141214200811_create_spud_role_permissions.tb_core.rb
455
+ - spec/dummy/db/migrate/20141214200812_drop_spud_admin_permissions.tb_core.rb
488
456
  - spec/dummy/db/schema.rb
489
457
  - spec/dummy/public/404.html
490
458
  - spec/dummy/public/422.html
491
459
  - spec/dummy/public/500.html
492
460
  - spec/dummy/public/favicon.ico
493
461
  - spec/dummy/script/rails
462
+ - spec/factories/spud_admin_permission_factories.rb
463
+ - spec/factories/spud_role_factories.rb
464
+ - spec/factories/spud_user_factories.rb
494
465
  - spec/helpers/spud/admin/application_helper_spec.rb
495
466
  - spec/helpers/spud/application_helper_spec.rb
496
- - spec/integration/admin_setup_spec.rb
497
- - spec/javascripts/date_picker_spec.js
498
- - spec/javascripts/support/jasmine.yml
499
- - spec/javascripts/support/jasmine_helper.rb
500
467
  - spec/lib/spud_core/configuration_spec.rb
501
468
  - spec/models/spud_role_spec.rb
502
469
  - spec/models/spud_user_spec.rb
470
+ - spec/rails_helper.rb
503
471
  - spec/spec_helper.rb
504
- - spec/support/authlogic_helper.rb
505
- - spec/views/layouts/admin/application.html.erb_spec.rb
506
472
  homepage: http://bitbucket.org/westlakedesign/tb_core
507
473
  licenses: []
508
474
  metadata: {}
@@ -517,9 +483,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
517
483
  version: '2.1'
518
484
  required_rubygems_version: !ruby/object:Gem::Requirement
519
485
  requirements:
520
- - - ">"
486
+ - - ">="
521
487
  - !ruby/object:Gem::Version
522
- version: 1.3.1
488
+ version: '0'
523
489
  requirements: []
524
490
  rubyforge_project:
525
491
  rubygems_version: 2.2.1
@@ -527,6 +493,7 @@ signing_key:
527
493
  specification_version: 4
528
494
  summary: Twice Baked Core Engine
529
495
  test_files:
496
+ - spec/authlogic_helper.rb
530
497
  - spec/controllers/admin/application_controller_spec.rb
531
498
  - spec/controllers/admin/dashboard_controller_spec.rb
532
499
  - spec/controllers/admin/password_reset_controller_spec.rb
@@ -534,10 +501,11 @@ test_files:
534
501
  - spec/controllers/admin/setup_controller_spec.rb
535
502
  - spec/controllers/admin/user_sessions_controller_spec.rb
536
503
  - spec/controllers/admin/users_controller_spec.rb
537
- - spec/controllers/sitemap_controllers_spec.rb
538
504
  - spec/controllers/spud/application_controller_spec.rb
505
+ - spec/dummy/app/assets/javascripts/admin/application.js
539
506
  - spec/dummy/app/assets/javascripts/application.js
540
- - spec/dummy/app/assets/stylesheets/application.css
507
+ - spec/dummy/app/assets/stylesheets/admin/application.css.scss
508
+ - spec/dummy/app/assets/stylesheets/application.css.scss
541
509
  - spec/dummy/app/controllers/application_controller.rb
542
510
  - spec/dummy/app/helpers/application_helper.rb
543
511
  - spec/dummy/app/views/layouts/application.html.erb
@@ -557,6 +525,15 @@ test_files:
557
525
  - spec/dummy/config/locales/en.yml
558
526
  - spec/dummy/config/routes.rb
559
527
  - spec/dummy/config.ru
528
+ - spec/dummy/db/migrate/20141214200804_create_spud_admin_permissions.tb_core.rb
529
+ - spec/dummy/db/migrate/20141214200805_create_spud_users.tb_core.rb
530
+ - spec/dummy/db/migrate/20141214200806_add_time_zone_to_spud_user.tb_core.rb
531
+ - spec/dummy/db/migrate/20141214200807_add_scope_to_spud_admin_permissions.tb_core.rb
532
+ - spec/dummy/db/migrate/20141214200808_create_spud_user_settings.tb_core.rb
533
+ - spec/dummy/db/migrate/20141214200809_create_spud_roles.tb_core.rb
534
+ - spec/dummy/db/migrate/20141214200810_create_spud_permissions.tb_core.rb
535
+ - spec/dummy/db/migrate/20141214200811_create_spud_role_permissions.tb_core.rb
536
+ - spec/dummy/db/migrate/20141214200812_drop_spud_admin_permissions.tb_core.rb
560
537
  - spec/dummy/db/schema.rb
561
538
  - spec/dummy/public/404.html
562
539
  - spec/dummy/public/422.html
@@ -565,15 +542,13 @@ test_files:
565
542
  - spec/dummy/Rakefile
566
543
  - spec/dummy/README.rdoc
567
544
  - spec/dummy/script/rails
545
+ - spec/factories/spud_admin_permission_factories.rb
546
+ - spec/factories/spud_role_factories.rb
547
+ - spec/factories/spud_user_factories.rb
568
548
  - spec/helpers/spud/admin/application_helper_spec.rb
569
549
  - spec/helpers/spud/application_helper_spec.rb
570
- - spec/integration/admin_setup_spec.rb
571
- - spec/javascripts/date_picker_spec.js
572
- - spec/javascripts/support/jasmine.yml
573
- - spec/javascripts/support/jasmine_helper.rb
574
550
  - spec/lib/spud_core/configuration_spec.rb
575
551
  - spec/models/spud_role_spec.rb
576
552
  - spec/models/spud_user_spec.rb
553
+ - spec/rails_helper.rb
577
554
  - spec/spec_helper.rb
578
- - spec/support/authlogic_helper.rb
579
- - spec/views/layouts/admin/application.html.erb_spec.rb
@@ -1,7 +0,0 @@
1
- class SitemapsController < Spud::ApplicationController
2
- respond_to :xml
3
- def show
4
- @sitemap_urls = Spud::Core.sitemap_urls
5
- respond_with @sitemap_urls
6
- end
7
- end
@@ -1,12 +0,0 @@
1
-
2
- xml.instruct! :xml, :version => '1.0', :encoding => 'UTF-8'
3
-
4
- # create the urlset
5
- xml.sitemapindex :xmlns => 'http://www.sitemaps.org/schemas/sitemap/0.9' do
6
- @sitemap_urls.each do |map|
7
- xml.sitemap do
8
- xml.loc eval(map.to_s + " :format => :xml")
9
- xml.lastmod Time.now.utc.xmlschema
10
- end
11
- end
12
- end
@@ -1,15 +0,0 @@
1
- require 'spec_helper'
2
-
3
- describe SitemapsController do
4
- describe :show do
5
- it "should return the sitemap urls" do
6
- Spud::Core.sitemap_urls = [
7
- "http://www.google.com",
8
- "http://www.example.com"
9
- ]
10
- get :show, :format => :xml
11
-
12
- assigns(:sitemap_urls).should == Spud::Core.sitemap_urls
13
- end
14
- end
15
- end
@@ -1,13 +0,0 @@
1
- /*
2
- * This is a manifest file that'll be compiled into application.css, which will include all the files
3
- * listed below.
4
- *
5
- * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
6
- * or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
7
- *
8
- * You're free to add application-wide styles to this file and they'll appear at the top of the
9
- * compiled file, but it's generally better to create a new file per style scope.
10
- *
11
- *= require_self
12
- *= require_tree .
13
- */
@@ -1,8 +0,0 @@
1
- require 'spec_helper'
2
-
3
- describe 'admin setup page' do
4
- it "should redirect /admin to /admin/setup" do
5
- visit '/admin'
6
- current_path.should == "/admin/setup"
7
- end
8
- end
@@ -1,8 +0,0 @@
1
- describe("admin.date_picker", function() {
2
-
3
- it("should pass a proper date when nothing is passed", function() {
4
- var i = parsePickerDate("");
5
- expect(i instanceof Date).toBe(true);
6
- });
7
-
8
- });
@@ -1,88 +0,0 @@
1
- # src_files
2
- #
3
- # Return an array of filepaths relative to src_dir to include before jasmine specs.
4
- # Default: []
5
- #
6
- # EXAMPLE:
7
- #
8
- # src_files:
9
- # - lib/source1.js
10
- # - lib/source2.js
11
- # - dist/**/*.js
12
- #
13
- src_files:
14
- - app/assets/javascripts/**/*.js
15
-
16
- # stylesheets
17
- #
18
- # Return an array of stylesheet filepaths relative to src_dir to include before jasmine specs.
19
- # Default: []
20
- #
21
- # EXAMPLE:
22
- #
23
- # stylesheets:
24
- # - css/style.css
25
- # - stylesheets/*.css
26
- #
27
- stylesheets:
28
-
29
- # helpers
30
- #
31
- # Return an array of filepaths relative to spec_dir to include before jasmine specs.
32
- # Default: ["helpers/**/*.js"]
33
- #
34
- # EXAMPLE:
35
- #
36
- # helpers:
37
- # - helpers/**/*.js
38
- #
39
- helpers:
40
- - 'helpers/**/*.js'
41
- # spec_files
42
- #
43
- # Return an array of filepaths relative to spec_dir to include.
44
- # Default: ["**/*[sS]pec.js"]
45
- #
46
- # EXAMPLE:
47
- #
48
- # spec_files:
49
- # - **/*[sS]pec.js
50
- #
51
- spec_files:
52
- - '**/*[sS]pec.js'
53
-
54
- # src_dir
55
- #
56
- # Source directory path. Your src_files must be returned relative to this path. Will use root if left blank.
57
- # Default: project root
58
- #
59
- # EXAMPLE:
60
- #
61
- # src_dir: public
62
- #
63
- src_dir:
64
-
65
- # spec_dir
66
- #
67
- # Spec directory path. Your spec_files must be returned relative to this path.
68
- # Default: spec/javascripts
69
- #
70
- # EXAMPLE:
71
- #
72
- # spec_dir: spec/javascripts
73
- #
74
- spec_dir:
75
-
76
- # spec_helper
77
- #
78
- # Ruby file that Jasmine server will require before starting.
79
- # Returned relative to your root path
80
- # Default spec/support/jasmine_helper.rb
81
- #
82
- # EXAMPLE:
83
- #
84
- # spec_helper: spec/support/jasmine_helper.rb
85
- #
86
- spec_helper: spec/support/jasmine_helper.rb
87
-
88
-
@@ -1,11 +0,0 @@
1
- #Use this file to set/override Jasmine configuration options
2
- #You can remove it if you don't need it.
3
- #This file is loaded *after* jasmine.yml is interpreted.
4
- #
5
- #Example: using a different boot file.
6
- #Jasmine.configure do |config|
7
- # config.boot_dir = '/absolute/path/to/boot_dir'
8
- # config.boot_files = lambda { ['/absolute/path/to/boot_dir/file.js'] }
9
- #end
10
- #
11
-
@@ -1,20 +0,0 @@
1
- require 'spec_helper'
2
-
3
- describe 'layouts/admin/application' do
4
-
5
- include ActionView::TestCase::Behavior
6
-
7
- before :each do
8
- activate_authlogic
9
- view.stub(:current_user){
10
- FactoryGirl.create(:spud_user)
11
- }
12
- end
13
-
14
- it 'should display an alert if Spud::Core.production_alert_domain is set' do
15
- Spud::Core.production_alert_domain = 'www.google.com'
16
- render
17
- rendered.should have_selector(".production-alert-header")
18
- end
19
-
20
- end