xing-framework 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (216) hide show
  1. checksums.yaml +4 -4
  2. data/default_configuration/base_app/API_DOC/README +23 -0
  3. data/default_configuration/base_app/API_DOC/admin-menus +167 -0
  4. data/default_configuration/base_app/API_DOC/admin-pages +173 -0
  5. data/default_configuration/base_app/API_DOC/content-block +10 -0
  6. data/default_configuration/base_app/API_DOC/navigation +54 -0
  7. data/default_configuration/base_app/API_DOC/page +38 -0
  8. data/default_configuration/base_app/CHANGELOG.md +122 -0
  9. data/default_configuration/base_app/Capfile +26 -0
  10. data/default_configuration/base_app/Gemfile +7 -0
  11. data/default_configuration/base_app/Gemfile.lock +155 -0
  12. data/default_configuration/base_app/README.md +24 -0
  13. data/default_configuration/base_app/Rakefile +25 -0
  14. data/default_configuration/base_app/backend/Gemfile +45 -0
  15. data/default_configuration/base_app/backend/Gemfile.lock +292 -0
  16. data/default_configuration/base_app/backend/README +12 -0
  17. data/default_configuration/base_app/backend/Rakefile +10 -0
  18. data/default_configuration/base_app/backend/app/controllers/application_controller.rb +3 -0
  19. data/default_configuration/base_app/backend/app/controllers/confirmations_controller.rb +3 -0
  20. data/default_configuration/base_app/backend/app/controllers/passwords_controller.rb +3 -0
  21. data/default_configuration/base_app/backend/app/controllers/registrations_controller.rb +15 -0
  22. data/default_configuration/base_app/backend/app/models/ability.rb +13 -0
  23. data/default_configuration/base_app/backend/app/models/role/admin.rb +8 -0
  24. data/default_configuration/base_app/backend/app/models/user.rb +43 -0
  25. data/default_configuration/base_app/backend/autotest/discover.rb +2 -0
  26. data/default_configuration/base_app/backend/bin/bundle +3 -0
  27. data/default_configuration/base_app/backend/bin/rails +4 -0
  28. data/default_configuration/base_app/backend/bin/rake +4 -0
  29. data/default_configuration/base_app/backend/config.ru +6 -0
  30. data/default_configuration/base_app/backend/config/application.rb +71 -0
  31. data/default_configuration/base_app/backend/config/boot.rb +4 -0
  32. data/default_configuration/base_app/backend/config/database.yml.ci +9 -0
  33. data/default_configuration/base_app/backend/config/database.yml.example +22 -0
  34. data/default_configuration/base_app/backend/config/environment.rb +5 -0
  35. data/default_configuration/base_app/backend/config/environments/development.rb +45 -0
  36. data/default_configuration/base_app/backend/config/environments/production.rb +78 -0
  37. data/default_configuration/base_app/backend/config/environments/staging.rb +48 -0
  38. data/default_configuration/base_app/backend/config/environments/test.rb +47 -0
  39. data/default_configuration/base_app/backend/config/initializers/assets.rb +8 -0
  40. data/default_configuration/base_app/backend/config/initializers/backtrace_silencers.rb +7 -0
  41. data/default_configuration/base_app/backend/config/initializers/constants.rb +1 -0
  42. data/default_configuration/base_app/backend/config/initializers/cookies_serializer.rb +3 -0
  43. data/default_configuration/base_app/backend/config/initializers/devise.rb +241 -0
  44. data/default_configuration/base_app/backend/config/initializers/devise_token_auth.rb +22 -0
  45. data/default_configuration/base_app/backend/config/initializers/filter_parameter_logging.rb +4 -0
  46. data/default_configuration/base_app/backend/config/initializers/inflections.rb +16 -0
  47. data/default_configuration/base_app/backend/config/initializers/mime_types.rb +4 -0
  48. data/default_configuration/base_app/backend/config/initializers/session_store.rb +3 -0
  49. data/default_configuration/base_app/backend/config/initializers/smtp.rb +25 -0
  50. data/default_configuration/base_app/backend/config/initializers/time_formats.rb +12 -0
  51. data/default_configuration/base_app/backend/config/initializers/wrap_parameters.rb +14 -0
  52. data/default_configuration/base_app/backend/config/locales/en.yml +23 -0
  53. data/default_configuration/base_app/backend/config/locales/json.yml +29 -0
  54. data/default_configuration/base_app/backend/config/routes.rb +33 -0
  55. data/default_configuration/base_app/backend/config/secrets.yml.ci +22 -0
  56. data/default_configuration/base_app/backend/config/secrets.yml.example +57 -0
  57. data/default_configuration/base_app/backend/config/sidekiq.yml +4 -0
  58. data/default_configuration/base_app/backend/db/sample_data/users.rake +10 -0
  59. data/default_configuration/base_app/backend/db/seeds.rb +14 -0
  60. data/default_configuration/base_app/backend/lib/static-app.rb +15 -0
  61. data/default_configuration/base_app/backend/public/404.html +26 -0
  62. data/default_configuration/base_app/backend/public/422.html +26 -0
  63. data/default_configuration/base_app/backend/public/500.html +26 -0
  64. data/default_configuration/base_app/backend/public/favicon.ico +0 -0
  65. data/default_configuration/base_app/backend/public/index.html +0 -0
  66. data/default_configuration/base_app/backend/public/robots.txt +5 -0
  67. data/default_configuration/base_app/backend/script/rails +6 -0
  68. data/default_configuration/base_app/backend/spec/factories/user_sessions_factory.rb +6 -0
  69. data/default_configuration/base_app/backend/spec/factories/users_factory.rb +35 -0
  70. data/default_configuration/base_app/backend/spec/features/user_sends_reset_password_email_spec.rb +30 -0
  71. data/default_configuration/base_app/backend/spec/features/user_signs_up_spec.rb +32 -0
  72. data/default_configuration/base_app/backend/spec/models/role/admin_spec.rb +12 -0
  73. data/default_configuration/base_app/backend/spec/models/role_spec.rb +48 -0
  74. data/default_configuration/base_app/backend/spec/models/user_spec.rb +59 -0
  75. data/default_configuration/base_app/backend/spec/requests/resources_index_spec.rb +22 -0
  76. data/default_configuration/base_app/backend/spec/spec_helper.rb +65 -0
  77. data/default_configuration/base_app/backend/spec/support/devise_helper.rb +78 -0
  78. data/default_configuration/base_app/backend/spec/support/log_tests.rb +5 -0
  79. data/default_configuration/base_app/backend/spec/support/session_helpers.rb +67 -0
  80. data/default_configuration/base_app/backend/spec/tasks/sample_data_rake_spec.rb +17 -0
  81. data/default_configuration/base_app/backend/static-app.ru +3 -0
  82. data/default_configuration/base_app/codeclimate.yml +7 -0
  83. data/default_configuration/base_app/config/compass.rb +21 -0
  84. data/default_configuration/base_app/config/deploy.rb +157 -0
  85. data/default_configuration/base_app/config/deploy/bundle-config +4 -0
  86. data/default_configuration/base_app/config/deploy/production.rb +7 -0
  87. data/default_configuration/base_app/config/deploy/staging.rb +6 -0
  88. data/default_configuration/base_app/doc/01_fail_resources.txt +173 -0
  89. data/default_configuration/base_app/doc/02_fail_auth.txt +165 -0
  90. data/default_configuration/base_app/doc/03_fail_menus.txt +174 -0
  91. data/default_configuration/base_app/dummy-api/admin/menu_items/10.json +15 -0
  92. data/default_configuration/base_app/dummy-api/admin/menu_items/11.json +15 -0
  93. data/default_configuration/base_app/dummy-api/admin/menu_items/12.json +15 -0
  94. data/default_configuration/base_app/dummy-api/admin/menu_items/13.json +15 -0
  95. data/default_configuration/base_app/dummy-api/admin/menu_items/14.json +15 -0
  96. data/default_configuration/base_app/dummy-api/admin/menu_items/15.json +15 -0
  97. data/default_configuration/base_app/dummy-api/admin/menu_items/16.json +15 -0
  98. data/default_configuration/base_app/dummy-api/admin/menus.json +23 -0
  99. data/default_configuration/base_app/dummy-api/admin/menus/1.json +118 -0
  100. data/default_configuration/base_app/dummy-api/admin/menus/2.json +8 -0
  101. data/default_configuration/base_app/dummy-api/admin/pages.json +105 -0
  102. data/default_configuration/base_app/dummy-api/admin/pages/about_us.json +45 -0
  103. data/default_configuration/base_app/dummy-api/admin/pages/contact_us.json +36 -0
  104. data/default_configuration/base_app/dummy-api/admin/pages/gallery.json +36 -0
  105. data/default_configuration/base_app/dummy-api/admin/pages/home.json +36 -0
  106. data/default_configuration/base_app/dummy-api/admin/pages/homepage.json +18 -0
  107. data/default_configuration/base_app/dummy-api/admin/pages/links.json +36 -0
  108. data/default_configuration/base_app/dummy-api/admin/pages/newsletter.json +54 -0
  109. data/default_configuration/base_app/dummy-api/homepage.json +14 -0
  110. data/default_configuration/base_app/dummy-api/navigation/main.json +119 -0
  111. data/default_configuration/base_app/dummy-api/pages/about_us.json +41 -0
  112. data/default_configuration/base_app/dummy-api/pages/contact_us.json +32 -0
  113. data/default_configuration/base_app/dummy-api/pages/gallery.json +32 -0
  114. data/default_configuration/base_app/dummy-api/pages/home.json +32 -0
  115. data/default_configuration/base_app/dummy-api/pages/homepage.json +14 -0
  116. data/default_configuration/base_app/dummy-api/pages/links.json +32 -0
  117. data/default_configuration/base_app/dummy-api/pages/newsletter.json +50 -0
  118. data/default_configuration/base_app/dump.rdb +0 -0
  119. data/default_configuration/base_app/example-lrd-dev-tmux.conf +17 -0
  120. data/default_configuration/base_app/frontend/CHANGELOG.md +125 -0
  121. data/default_configuration/base_app/frontend/Gemfile +5 -0
  122. data/default_configuration/base_app/frontend/Gemfile.lock +34 -0
  123. data/default_configuration/base_app/frontend/Gruntfile.js +3 -0
  124. data/default_configuration/base_app/frontend/LICENSE +19 -0
  125. data/default_configuration/base_app/frontend/README.md +5 -0
  126. data/default_configuration/base_app/frontend/bin/index.html +0 -0
  127. data/default_configuration/base_app/frontend/build.config.js +110 -0
  128. data/default_configuration/base_app/frontend/changelog.tpl +23 -0
  129. data/default_configuration/base_app/frontend/config/compass.rb +33 -0
  130. data/default_configuration/base_app/frontend/config/environments/development.js +4 -0
  131. data/default_configuration/base_app/frontend/config/environments/integration.js +4 -0
  132. data/default_configuration/base_app/frontend/config/environments/production.js +3 -0
  133. data/default_configuration/base_app/frontend/config/environments/test.js +4 -0
  134. data/default_configuration/base_app/frontend/create +0 -0
  135. data/default_configuration/base_app/frontend/karma/karma-unit.tpl.js +80 -0
  136. data/default_configuration/base_app/frontend/module.prefix +1 -0
  137. data/default_configuration/base_app/frontend/module.suffix +1 -0
  138. data/default_configuration/base_app/frontend/npm-shrinkwrap.json +4334 -0
  139. data/default_configuration/base_app/frontend/package.json +75 -0
  140. data/default_configuration/base_app/frontend/sprockets/index.tpl.js +2 -0
  141. data/default_configuration/base_app/frontend/src/README.md +48 -0
  142. data/default_configuration/base_app/frontend/src/app/README.md +68 -0
  143. data/default_configuration/base_app/frontend/src/app/app.js +47 -0
  144. data/default_configuration/base_app/frontend/src/app/appConfig.js +19 -0
  145. data/default_configuration/base_app/frontend/src/app/auth/auth.js +66 -0
  146. data/default_configuration/base_app/frontend/src/app/auth/config.js +22 -0
  147. data/default_configuration/base_app/frontend/src/app/auth/confirmations/confirmations-success.tpl.html +1 -0
  148. data/default_configuration/base_app/frontend/src/app/auth/confirmations/confirmations.js +8 -0
  149. data/default_configuration/base_app/frontend/src/app/auth/confirmations/confirmationsStates.js +12 -0
  150. data/default_configuration/base_app/frontend/src/app/auth/passwords/passwords-request-success.tpl.html +3 -0
  151. data/default_configuration/base_app/frontend/src/app/auth/passwords/passwords-request.tpl.html +16 -0
  152. data/default_configuration/base_app/frontend/src/app/auth/passwords/passwords-update-success.tpl.html +3 -0
  153. data/default_configuration/base_app/frontend/src/app/auth/passwords/passwords-update.tpl.html +21 -0
  154. data/default_configuration/base_app/frontend/src/app/auth/passwords/passwords.js +11 -0
  155. data/default_configuration/base_app/frontend/src/app/auth/passwords/passwordsControllers.js +47 -0
  156. data/default_configuration/base_app/frontend/src/app/auth/passwords/passwordsStates.js +38 -0
  157. data/default_configuration/base_app/frontend/src/app/auth/registrations/registrations-success.tpl.html +1 -0
  158. data/default_configuration/base_app/frontend/src/app/auth/registrations/registrations.js +14 -0
  159. data/default_configuration/base_app/frontend/src/app/auth/registrations/registrations.tpl.html +37 -0
  160. data/default_configuration/base_app/frontend/src/app/auth/registrations/registrationsControllers.js +25 -0
  161. data/default_configuration/base_app/frontend/src/app/auth/registrations/registrationsStates.js +18 -0
  162. data/default_configuration/base_app/frontend/src/app/auth/sessions/sessions-success.tpl.html +1 -0
  163. data/default_configuration/base_app/frontend/src/app/auth/sessions/sessions.js +18 -0
  164. data/default_configuration/base_app/frontend/src/app/auth/sessions/sessions.tpl.html +25 -0
  165. data/default_configuration/base_app/frontend/src/app/auth/sessions/sessionsControllers.js +26 -0
  166. data/default_configuration/base_app/frontend/src/app/auth/sessions/sessionsStates.js +20 -0
  167. data/default_configuration/base_app/frontend/src/app/homepage/homepage-show.tpl.html +2 -0
  168. data/default_configuration/base_app/frontend/src/app/homepage/homepage.js +10 -0
  169. data/default_configuration/base_app/frontend/src/app/homepage/homepage.tpl.html +13 -0
  170. data/default_configuration/base_app/frontend/src/app/homepage/homepageControllers.js +9 -0
  171. data/default_configuration/base_app/frontend/src/app/homepage/homepageStates.js +22 -0
  172. data/default_configuration/base_app/frontend/src/app/inner.tpl.html +16 -0
  173. data/default_configuration/base_app/frontend/src/app/root.tpl.html +2 -0
  174. data/default_configuration/base_app/frontend/src/app/rootController.js +8 -0
  175. data/default_configuration/base_app/frontend/src/app/rootStates.js +20 -0
  176. data/default_configuration/base_app/frontend/src/assets/README.md +4 -0
  177. data/default_configuration/base_app/frontend/src/assets/icons/alert.svg +1 -0
  178. data/default_configuration/base_app/frontend/src/common/README.md +19 -0
  179. data/default_configuration/base_app/frontend/src/common/components/OnLoginDirective/OnLoginDirective.js +17 -0
  180. data/default_configuration/base_app/frontend/src/common/components/adminOnly/admin-only.tpl.html +4 -0
  181. data/default_configuration/base_app/frontend/src/common/components/adminOnly/adminOnly.js +23 -0
  182. data/default_configuration/base_app/frontend/src/common/components/sessionLinks/session-links.tpl.html +5 -0
  183. data/default_configuration/base_app/frontend/src/common/components/sessionLinks/sessionLinks.js +25 -0
  184. data/default_configuration/base_app/frontend/src/common/components/signOut/signOut.js +19 -0
  185. data/default_configuration/base_app/frontend/src/common/config.js +27 -0
  186. data/default_configuration/base_app/frontend/src/index.html +86 -0
  187. data/default_configuration/base_app/frontend/src/styles/_constants.sass +14 -0
  188. data/default_configuration/base_app/frontend/src/styles/main.sass +52 -0
  189. data/default_configuration/base_app/frontend/src/styles/partials/_footer.sass +18 -0
  190. data/default_configuration/base_app/frontend/src/styles/partials/_forms.sass +9 -0
  191. data/default_configuration/base_app/frontend/src/styles/partials/_layout.sass +17 -0
  192. data/default_configuration/base_app/frontend/src/styles/partials/_navbar.sass +10 -0
  193. data/default_configuration/base_app/frontend/src/styles/partials/_typography.sass +18 -0
  194. data/default_configuration/base_app/frontend/src/styles/states/_errorFallback.sass +7 -0
  195. data/default_configuration/base_app/frontend/src/styles/states/_root_homepage.sass +8 -0
  196. data/default_configuration/base_app/frontend/test-help/xpath.js +9 -0
  197. data/default_configuration/base_app/frontend/test/app.js +24 -0
  198. data/default_configuration/base_app/frontend/test/auth/confirmations/confirmationsStates.js +46 -0
  199. data/default_configuration/base_app/frontend/test/auth/passwords/passwordsControllers.js +193 -0
  200. data/default_configuration/base_app/frontend/test/auth/passwords/passwordsStates.js +108 -0
  201. data/default_configuration/base_app/frontend/test/auth/registrations/registrationsControllers.js +117 -0
  202. data/default_configuration/base_app/frontend/test/auth/registrations/registrationsStates.js +64 -0
  203. data/default_configuration/base_app/frontend/test/auth/sessions/sessionsControllers.js +95 -0
  204. data/default_configuration/base_app/frontend/test/auth/sessions/sessionsStates.js +67 -0
  205. data/default_configuration/base_app/frontend/test/specHelper.js +33 -0
  206. data/default_configuration/base_app/frontend/test/support/mockDirective.js +13 -0
  207. data/default_configuration/base_app/frontend/test/support/stateResolveFn.js +3 -0
  208. data/default_configuration/base_app/frontend/test/support/testStates.js +20 -0
  209. data/default_configuration/base_app/frontend/tools.md +223 -0
  210. data/default_configuration/base_app/lib/capistrano/tasks/sidekiq.rake +218 -0
  211. data/default_configuration/base_app/static-app.ru +3 -0
  212. data/default_configuration/base_app/tmux-windows +68 -0
  213. data/default_configuration/base_app/tmux-windows.txt +53 -0
  214. data/lib/xing/cli.rb +8 -3
  215. data/lib/xing/cli/generators/new_project.rb +48 -13
  216. metadata +219 -7
@@ -0,0 +1,4 @@
1
+ ---
2
+ BUNDLE_FROZEN: '1'
3
+ BUNDLE_PATH: "vendor/bundle"
4
+ BUNDLE_DISABLE_SHARED_GEMS: '1'
@@ -0,0 +1,7 @@
1
+ server 'example.com', user: 'root', roles: %w{web app}
2
+ set :branch, "production"
3
+ set :application, "example.com"
4
+
5
+ set :rails_warmup_url, 'http://example.com'
6
+
7
+ # set :use_sudo, true # <- depends on deployment
@@ -0,0 +1,6 @@
1
+ server 'example.com', user: 'root', roles: %w{web app}
2
+ set :branch, "staging"
3
+ set :application, "staging.example.com"
4
+ set :rails_warmup_url, 'http://staging.example.com'
5
+
6
+ #set :use_sudo, true #<- depends on deploy
@@ -0,0 +1,173 @@
1
+
2
+ Failure to get Menu
3
+ --------------------------------------
4
+ Failures:
5
+
6
+ 1) Vistor navigated to a path on mobile clicks on Menu
7
+ Failure/Error: click_on("Menu") # Expand the currently-collapsed menu
8
+ Capybara::ElementNotFound:
9
+ Unable to find link or button "Menu"
10
+ # ./spec/features/visitor_navigates_with_menu_spec.rb:55:in `block (2 levels) in <top (required)>'
11
+
12
+ 2) Vistor navigated to a path on mobile step list
13
+ Failure/Error: example.run(self, reporter)
14
+ Capybara::ElementNotFound:
15
+ Unable to find link or button "Menu"
16
+ # ./spec/features/visitor_navigates_with_menu_spec.rb:55:in `block (2 levels) in <top (required)>'
17
+
18
+
19
+ Fri Jan 30 2015 17:39:43 GMT-0800 (PST)
20
+ <function>
21
+
22
+ Fri Jan 30 2015 17:39:43 GMT-0800 (PST)
23
+ Resource load for: /menus
24
+
25
+ Fri Jan 30 2015 17:39:43 GMT-0800 (PST)
26
+ A
27
+
28
+ Fri Jan 30 2015 17:39:43 GMT-0800 (PST)
29
+ C
30
+
31
+ Fri Jan 30 2015 17:39:43 GMT-0800 (PST)
32
+ <function>
33
+
34
+ Fri Jan 30 2015 17:39:43 GMT-0800 (PST)
35
+ Resource load for: /resources
36
+
37
+ Fri Jan 30 2015 17:39:43 GMT-0800 (PST)
38
+ A
39
+
40
+ Fri Jan 30 2015 17:39:43 GMT-0800 (PST)
41
+ C
42
+
43
+ Fri Jan 30 2015 17:39:43 GMT-0800 (PST)
44
+ home A - isAdmin
45
+
46
+ Fri Jan 30 2015 17:39:43 GMT-0800 (PST)
47
+ Found No Admin
48
+
49
+ Fri Jan 30 2015 17:39:43 GMT-0800 (PST)
50
+ Admin state : bool
51
+
52
+ Fri Jan 30 2015 17:39:43 GMT-0800 (PST)
53
+ home B - page
54
+
55
+ Fri Jan 30 2015 17:39:43 GMT-0800 (PST)
56
+ backend: [object Object]
57
+
58
+ Fri Jan 30 2015 17:39:43 GMT-0800 (PST)
59
+ home c - page
60
+
61
+ Fri Jan 30 2015 17:39:43 GMT-0800 (PST)
62
+ <function>
63
+
64
+ Fri Jan 30 2015 17:39:43 GMT-0800 (PST)
65
+ Resource load for: /homepage
66
+
67
+ Fri Jan 30 2015 17:39:43 GMT-0800 (PST)
68
+ A
69
+
70
+ Fri Jan 30 2015 17:39:43 GMT-0800 (PST)
71
+ C
72
+
73
+ Fri Jan 30 2015 17:39:43 GMT-0800 (PST)
74
+ Response in backendResponds: {"links":{"self":"/menus"},"data":[{"links":{"self":"/menus/1"},"data":{"name":"Main Menu"}},{"links":{"self":"/menus/2"},"data":{"name":"Blog Topics"}}],"route":"menus","reqParams":null,"$fromServer":true,"parentResource":null,"restangularCollection":false}
75
+
76
+ Fri Jan 30 2015 17:39:43 GMT-0800 (PST)
77
+ Response in backendResponds: {"links":{"self":"/pages/homepage","admin":"/admin/pages/homepage"},"data":{"title":"This site's homepage","keywords":"Info, about, this, site.","description":"This site was built with LRD's CMS framework.","layout":"homepage","contents":{}},"route":"homepage","reqParams":null,"$fromServer":true,"parentResource":null,"restangularCollection":false}
78
+
79
+ (END)
80
+
81
+
82
+ -------------------------------------
83
+
84
+ Beginning step Vistor navigated to a path on mobile clicks on Menu (at ./spec/features/visitor_navigates_with_menu_spec.rb:54)
85
+ Completed 200 OK in 6ms (Views: 0.6ms | ActiveRecord: 0.0ms)
86
+ Response: {
87
+ "links": {
88
+ "sidekiq_web": "/sidekiq",
89
+ "homepage": "/homepage",
90
+ "page": "/pages/{url_slug}",
91
+ "menus": "/menus",
92
+ "menu": "/menus/{id}",
93
+ "resources": "/resources",
94
+ "admin_froala_images": "/admin/froala_images",
95
+ "admin_froala_images_delete": "/admin/froala_images/delete",
96
+ "admin_froala_documents": "/admin/froala_documents",
97
+ "admin_pages": "/admin/pages",
98
+ "new_admin_page": "/admin/pages/new",
99
+ "edit_admin_page": "/admin/pages/{url_slug}/edit",
100
+ "admin_page": "/admin/pages/{url_slug}",
101
+ "admin_menu_items": "/admin/menu_items",
102
+ "new_admin_menu_item": "/admin/menu_items/new",
103
+ "edit_admin_menu_item": "/admin/menu_items/{id}/edit",
104
+ "admin_menu_item": "/admin/menu_items/{id}",
105
+ "admin_content_blocks": "/admin/content_blocks",
106
+ "new_admin_content_block": "/admin/content_blocks/new",
107
+ "edit_admin_content_block": "/admin/content_blocks/{id}/edit",
108
+ "admin_content_block": "/admin/content_blocks/{id}",
109
+ "new_user_session": "/users/sign_in",
110
+ "user_session": "/users/sign_in",
111
+ "destroy_user_session": "/users/sign_out",
112
+ "user_password": "/users/password",
113
+ "new_user_password": "/users/password/new",
114
+ "edit_user_password": "/users/password/edit",
115
+ "cancel_user_registration": "/users/cancel",
116
+ "user_registration": "/users",
117
+ "new_user_registration": "/users/sign_up",
118
+ "edit_user_registration": "/users/edit",
119
+ "user_confirmation": "/users/confirmation",
120
+ "new_user_confirmation": "/users/confirmation/new",
121
+ "validate_token": "/users/validate_token"
122
+ },
123
+ "data": {
124
+ }
125
+ }
126
+ Started GET "/menus" for 127.0.0.1 at 2015-01-30 17:39:43 -0800
127
+ Processing by MenusController#index as JSON
128
+ MenuItem Load (0.3ms) SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."parent_id" IS NULL
129
+ Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.3ms)
130
+ Response: {
131
+ "links": {
132
+ "self": "/menus"
133
+ },
134
+ "data": [
135
+ {
136
+ "links": {
137
+ "self": "/menus/1"
138
+ },
139
+ "data": {
140
+ "name": "Main Menu"
141
+ }
142
+ },
143
+ {
144
+ "links": {
145
+ "self": "/menus/2"
146
+ },
147
+ "data": {
148
+ "name": "Blog Topics"
149
+ }
150
+ }
151
+ ]
152
+ }
153
+ Started GET "/homepage" for 127.0.0.1 at 2015-01-30 17:39:43 -0800
154
+ Processing by PagesController#show as JSON
155
+ Parameters: {"url_slug"=>"homepage"}
156
+ Page Load (0.3ms) SELECT "pages".* FROM "pages" WHERE "pages"."url_slug" = 'homepage' LIMIT 1
157
+ PageContent Load (0.3ms) SELECT "page_contents".* FROM "page_contents" WHERE "page_contents"."page_id" = $1 [["page_id", 1]]
158
+ Completed 200 OK in 2ms (Views: 1.2ms | ActiveRecord: 0.6ms)
159
+ Response: {
160
+ "links": {
161
+ "self": "/pages/homepage",
162
+ "admin": "/admin/pages/homepage"
163
+ },
164
+ "data": {
165
+ "title": "This site's homepage",
166
+ "keywords": "Info, about, this, site.",
167
+ "description": "This site was built with LRD's CMS framework.",
168
+ "layout": "homepage",
169
+ "contents": {
170
+ }
171
+ }
172
+ }
173
+ Finished step Vistor navigated to a path on mobile clicks on Menu (at ./spec/features/visitor_navigates_with_menu_spec.rb:54)
@@ -0,0 +1,165 @@
1
+
2
+ 1) User Sends Reset Password clicks on Sign In
3
+ Failure/Error: within ".session-links" do
4
+ Capybara::ElementNotFound:
5
+ Unable to find css ".session-links"
6
+ # ./spec/support/session_helpers.rb:66:in `block (2 levels) in <top (required)>'
7
+
8
+ -----------------------------
9
+
10
+ Fri Jan 30 2015 18:00:33 GMT-0800 (PST)
11
+ <function>
12
+
13
+ Fri Jan 30 2015 18:00:33 GMT-0800 (PST)
14
+ Resource load for: /menus
15
+
16
+ Fri Jan 30 2015 18:00:33 GMT-0800 (PST)
17
+ A
18
+
19
+ Fri Jan 30 2015 18:00:33 GMT-0800 (PST)
20
+ C
21
+
22
+ Fri Jan 30 2015 18:00:33 GMT-0800 (PST)
23
+ <function>
24
+
25
+ Fri Jan 30 2015 18:00:33 GMT-0800 (PST)
26
+ Resource load for: /resources
27
+
28
+ Fri Jan 30 2015 18:00:33 GMT-0800 (PST)
29
+ A
30
+
31
+ Fri Jan 30 2015 18:00:33 GMT-0800 (PST)
32
+ C
33
+
34
+ Fri Jan 30 2015 18:00:33 GMT-0800 (PST)
35
+ home A - isAdmin
36
+
37
+ Fri Jan 30 2015 18:00:33 GMT-0800 (PST)
38
+ Response in backendResponds: {"links":{"sidekiqWeb":"/sidekiq","homepage":"/homepage","page":"/pages/{url_slug}","menus":"/menus","menu":"/menus/{id}","resources":"/resources","adminFroalaImages":"/admin/froala_images","adminFroalaImagesDelete":"/admin/froala_images/delete","adminFroalaDocuments":"/admin/froala_documents","adminPages":"/admin/pages","newAdminPage":"/admin/pages/new","editAdminPage":"/admin/pages/{url_slug}/edit","adminPage":"/admin/pages/{url_slug}","adminMenuItems":"/admin/menu_items","newAdminMenuItem":"/admin/menu_items/new","editAdminMenuItem":"/admin/menu_items/{id}/edit","adminMenuItem":"/admin/menu_items/{id}","adminContentBlocks":"/admin/content_blocks","newAdminContentBlock":"/admin/content_blocks/new","editAdminContentBlock":"/admin/content_blocks/{id}/edit","adminContentBlock":"/admin/content_blocks/{id}","newUserSession":"/users/sign_in","userSession":"/users/sign_in","destroyUserSession":"/users/sign_out","userPassword":"/users/password","newUserPassword":"/users/password/new","editUserPassword":"/users/password/edit","cancelUserRegistration":"/users/cancel","userRegistration":"/users","newUserRegistration":"/users/sign_up","editUserRegistration":"/users/edit","userConfirmation":"/users/confirmation","newUserConfirmation":"/users/confirmation/new","validateToken":"/users/validate_token"},"data":{},"route":"resources","reqParams":null,"$fromServer":true,"parentResource":null,"restangularCollection":false}
39
+
40
+ Fri Jan 30 2015 18:00:33 GMT-0800 (PST)
41
+ Response in backendResponds: {"links":{"self":"/menus"},"data":[{"links":{"self":"/menus/1"},"data":{"name":"Main Menu"}},{"links":{"self":"/menus/2"},"data":{"name":"Blog Topics"}}],"route":"menus","reqParams":null,"$fromServer":true,"parentResource":null,"restangularCollection":false}
42
+
43
+ Fri Jan 30 2015 18:00:33 GMT-0800 (PST)
44
+ <function>
45
+
46
+ Fri Jan 30 2015 18:00:33 GMT-0800 (PST)
47
+ Resource load for: /menus/1
48
+
49
+ Fri Jan 30 2015 18:00:33 GMT-0800 (PST)
50
+ A
51
+
52
+ Fri Jan 30 2015 18:00:33 GMT-0800 (PST)
53
+ C
54
+
55
+ Fri Jan 30 2015 18:00:33 GMT-0800 (PST)
56
+ Response in backendResponds: {"links":{"self":"/menus/1"},"data":{"type":"raw_url","name":"Main Menu","path":"#","children":[]},"route":"menus/1","reqParams":null,"$fromServer":true,"parentResource":null,"restangularCollection":false}
57
+
58
+ Fri Jan 30 2015 18:00:33 GMT-0800 (PST)
59
+ Response in backendResponds: {"data":[]}
60
+
61
+
62
+
63
+ ------------------------- Rails log
64
+ Beginning step User Sends Reset Password clicks on the menu (if needed) (at ./spec/support/session_helpers.rb:46)
65
+ User Load (1.5ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'uid 1' LIMIT 1
66
+ Finished step User Sends Reset Password clicks on the menu (if needed) (at ./spec/support/session_helpers.rb:46)
67
+ Completed 401 Unauthorized in 5ms (Views: 1.3ms | ActiveRecord: 1.5ms)
68
+ Response: {
69
+ "status": "error",
70
+ "errors": [
71
+ "Invalid login credentials"
72
+ ]
73
+ }
74
+ Beginning step User Sends Reset Password clicks on Sign In (at ./spec/support/session_helpers.rb:65)
75
+ Started GET "/resources" for 127.0.0.1 at 2015-01-30 18:00:33 -0800
76
+ Processing by ResourcesController#index as JSON
77
+ Completed 200 OK in 5ms (Views: 0.7ms | ActiveRecord: 0.0ms)
78
+ Response: {
79
+ "links": {
80
+ "sidekiq_web": "/sidekiq",
81
+ "homepage": "/homepage",
82
+ "page": "/pages/{url_slug}",
83
+ "menus": "/menus",
84
+ "menu": "/menus/{id}",
85
+ "resources": "/resources",
86
+ "admin_froala_images": "/admin/froala_images",
87
+ "admin_froala_images_delete": "/admin/froala_images/delete",
88
+ "admin_froala_documents": "/admin/froala_documents",
89
+ "admin_pages": "/admin/pages",
90
+ "new_admin_page": "/admin/pages/new",
91
+ "edit_admin_page": "/admin/pages/{url_slug}/edit",
92
+ "admin_page": "/admin/pages/{url_slug}",
93
+ "admin_menu_items": "/admin/menu_items",
94
+ "new_admin_menu_item": "/admin/menu_items/new",
95
+ "edit_admin_menu_item": "/admin/menu_items/{id}/edit",
96
+ "admin_menu_item": "/admin/menu_items/{id}",
97
+ "admin_content_blocks": "/admin/content_blocks",
98
+ "new_admin_content_block": "/admin/content_blocks/new",
99
+ "edit_admin_content_block": "/admin/content_blocks/{id}/edit",
100
+ "admin_content_block": "/admin/content_blocks/{id}",
101
+ "new_user_session": "/users/sign_in",
102
+ "user_session": "/users/sign_in",
103
+ "destroy_user_session": "/users/sign_out",
104
+ "user_password": "/users/password",
105
+ "new_user_password": "/users/password/new",
106
+ "edit_user_password": "/users/password/edit",
107
+ "cancel_user_registration": "/users/cancel",
108
+ "user_registration": "/users",
109
+ "new_user_registration": "/users/sign_up",
110
+ "edit_user_registration": "/users/edit",
111
+ "user_confirmation": "/users/confirmation",
112
+ "new_user_confirmation": "/users/confirmation/new",
113
+ "validate_token": "/users/validate_token"
114
+ },
115
+ "data": {
116
+ }
117
+ }
118
+ Started GET "/menus" for 127.0.0.1 at 2015-01-30 18:00:33 -0800
119
+ Processing by MenusController#index as JSON
120
+ MenuItem Load (0.3ms) SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."parent_id" IS NULL
121
+ Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.3ms)
122
+ Response: {
123
+ "links": {
124
+ "self": "/menus"
125
+ },
126
+ "data": [
127
+ {
128
+ "links": {
129
+ "self": "/menus/1"
130
+ },
131
+ "data": {
132
+ "name": "Main Menu"
133
+ }
134
+ },
135
+ {
136
+ "links": {
137
+ "self": "/menus/2"
138
+ },
139
+ "data": {
140
+ "name": "Blog Topics"
141
+ }
142
+ }
143
+ ]
144
+ }
145
+ Started GET "/menus/1" for 127.0.0.1 at 2015-01-30 18:00:33 -0800
146
+ Processing by MenusController#show as JSON
147
+ Parameters: {"id"=>"1"}
148
+ MenuItem Load (0.2ms) SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."id" = $1 LIMIT 1 [["id", 1]]
149
+ MenuItem Load (0.3ms) SELECT "menu_items".* FROM "menu_items" WHERE ("menu_items"."lft" >= 1) AND ("menu_items"."lft" < 2) ORDER BY "menu_items"."lft"
150
+ Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.5ms)
151
+ Response: {
152
+ "links": {
153
+ "self": "/menus/1"
154
+ },
155
+ "data": {
156
+ "type": "raw_url",
157
+ "name": "Main Menu",
158
+ "path": "#",
159
+ "children": [
160
+
161
+ ]
162
+ }
163
+ }
164
+ Finished step User Sends Reset Password clicks on Sign In (at ./spec/support/session_helpers.rb:65)
165
+
@@ -0,0 +1,174 @@
1
+ Menu failure: request for /menus didn't come back
2
+
3
+ ----------------------------
4
+
5
+ 1) Vistor navigated to a path on mobile clicks on Menu
6
+ Failure/Error: click_on("Menu") # Expand the currently-collapsed menu
7
+ Capybara::ElementNotFound:
8
+ Unable to find link or button "Menu"
9
+ # ./spec/features/visitor_navigates_with_menu_spec.rb:55:in `block (2 levels) in <top (required)>'
10
+ ----------------------------
11
+
12
+ Fri Jan 30 2015 18:15:57 GMT-0800 (PST)
13
+ <function>
14
+
15
+ Fri Jan 30 2015 18:15:57 GMT-0800 (PST)
16
+ Resource load for: /menus
17
+
18
+ Fri Jan 30 2015 18:15:57 GMT-0800 (PST)
19
+ A
20
+
21
+ Fri Jan 30 2015 18:15:57 GMT-0800 (PST)
22
+ C
23
+
24
+ Fri Jan 30 2015 18:15:57 GMT-0800 (PST)
25
+ <function>
26
+
27
+ Fri Jan 30 2015 18:15:57 GMT-0800 (PST)
28
+ Resource load for: /resources
29
+
30
+ Fri Jan 30 2015 18:15:57 GMT-0800 (PST)
31
+ A
32
+
33
+ Fri Jan 30 2015 18:15:57 GMT-0800 (PST)
34
+ C
35
+
36
+ Fri Jan 30 2015 18:15:57 GMT-0800 (PST)
37
+ home A - isAdmin
38
+
39
+ Fri Jan 30 2015 18:15:57 GMT-0800 (PST)
40
+ Found No Admin
41
+
42
+ Fri Jan 30 2015 18:15:57 GMT-0800 (PST)
43
+ Admin state : bool
44
+
45
+ Fri Jan 30 2015 18:15:57 GMT-0800 (PST)
46
+ home B - page
47
+
48
+ Fri Jan 30 2015 18:15:57 GMT-0800 (PST)
49
+ backend: [object Object]
50
+
51
+ Fri Jan 30 2015 18:15:57 GMT-0800 (PST)
52
+ home c - page
53
+
54
+ Fri Jan 30 2015 18:15:57 GMT-0800 (PST)
55
+ <function>
56
+
57
+ Fri Jan 30 2015 18:15:57 GMT-0800 (PST)
58
+ Resource load for: /homepage
59
+
60
+ Fri Jan 30 2015 18:15:57 GMT-0800 (PST)
61
+ A
62
+
63
+ Fri Jan 30 2015 18:15:57 GMT-0800 (PST)
64
+ C
65
+
66
+ Fri Jan 30 2015 18:15:57 GMT-0800 (PST)
67
+ Resource Class [object Object]
68
+
69
+ Fri Jan 30 2015 18:15:57 GMT-0800 (PST)
70
+ Response in backendResponds: {"links":{"sidekiqWeb":"/sidekiq","homepage":"/homepage","page":"/pages/{url_slug}","menus":"/menus","menu":"/menus/{id}","resources":"/resources","adminFroalaImages":"/admin/froala_images","adminFroalaImagesDelete":"/admin/froala_images/delete","adminFroalaDocuments":"/admin/froala_documents","adminPages":"/admin/pages","newAdminPage":"/admin/pages/new","editAdminPage":"/admin/pages/{url_slug}/edit","adminPage":"/admin/pages/{url_slug}","adminMenuItems":"/admin/menu_items","newAdminMenuItem":"/admin/menu_items/new","editAdminMenuItem":"/admin/menu_items/{id}/edit","adminMenuItem":"/admin/menu_items/{id}","adminContentBlocks":"/admin/content_blocks","newAdminContentBlock":"/admin/content_blocks/new","editAdminContentBlock":"/admin/content_blocks/{id}/edit","adminContentBlock":"/admin/content_blocks/{id}","newUserSession":"/users/sign_in","userSession":"/users/sign_in","destroyUserSession":"/users/sign_out","userPassword":"/users/password","newUserPassword":"/users/password/new","editUserPassword":"/users/password/edit","cancelUserRegistration":"/users/cancel","userRegistration":"/users","newUserRegistration":"/users/sign_up","editUserRegistration":"/users/edit","userConfirmation":"/users/confirmation","newUserConfirmation":"/users/confirmation/new","validateToken":"/users/validate_token"},"data":{},"route":"resources","reqParams":null,"$fromServer":true,"parentResource":null,"restangularCollection":false}
71
+
72
+ Fri Jan 30 2015 18:15:57 GMT-0800 (PST)
73
+ Resource Class [object Object]
74
+
75
+ Fri Jan 30 2015 18:15:57 GMT-0800 (PST)
76
+ Response in backendResponds: {"links":{"self":"/pages/homepage","admin":"/admin/pages/homepage"},"data":{"title":"This site's homepage","keywords":"Info, about, this, site.","description":"This site was built with LRD's CMS framework.","layout":"homepage","contents":{}},"route":"homepage","reqParams":null,"$fromServer":true,"parentResource":null,"restangularCollection":false}
77
+
78
+
79
+ -----------------------
80
+
81
+ Beginning step Vistor navigated to a path on mobile visit root (at ./spec/features/visitor_navigates_with_menu_spec.rb:50)
82
+ Started GET "/menus" for 127.0.0.1 at 2015-01-30 18:15:57 -0800
83
+ Processing by MenusController#index as JSON
84
+ MenuItem Load (0.3ms) SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."parent_id" IS NULL
85
+ Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.3ms)
86
+ Response: {
87
+ "links": {
88
+ "self": "/menus"
89
+ },
90
+ "data": [
91
+ {
92
+ "links": {
93
+ "self": "/menus/1"
94
+ },
95
+ "data": {
96
+ "name": "Main Menu"
97
+ }
98
+ },
99
+ {
100
+ "links": {
101
+ "self": "/menus/2"
102
+ },
103
+ "data": {
104
+ "name": "Blog Topics"
105
+ }
106
+ }
107
+ ]
108
+ }
109
+ Started GET "/resources" for 127.0.0.1 at 2015-01-30 18:15:57 -0800
110
+ Processing by ResourcesController#index as JSON
111
+ Completed 200 OK in 4ms (Views: 0.6ms | ActiveRecord: 0.0ms)
112
+ Finished step Vistor navigated to a path on mobile visit root (at ./spec/features/visitor_navigates_with_menu_spec.rb:50)
113
+ Response: {
114
+ "links": {
115
+ "sidekiq_web": "/sidekiq",
116
+ "homepage": "/homepage",
117
+ "page": "/pages/{url_slug}",
118
+ "menus": "/menus",
119
+ "menu": "/menus/{id}",
120
+ "resources": "/resources",
121
+ "admin_froala_images": "/admin/froala_images",
122
+ "admin_froala_images_delete": "/admin/froala_images/delete",
123
+ "admin_froala_documents": "/admin/froala_documents",
124
+ "admin_pages": "/admin/pages",
125
+ "new_admin_page": "/admin/pages/new",
126
+ "edit_admin_page": "/admin/pages/{url_slug}/edit",
127
+ "admin_page": "/admin/pages/{url_slug}",
128
+ "admin_menu_items": "/admin/menu_items",
129
+ "new_admin_menu_item": "/admin/menu_items/new",
130
+ "edit_admin_menu_item": "/admin/menu_items/{id}/edit",
131
+ "admin_menu_item": "/admin/menu_items/{id}",
132
+ "admin_content_blocks": "/admin/content_blocks",
133
+ "new_admin_content_block": "/admin/content_blocks/new",
134
+ "edit_admin_content_block": "/admin/content_blocks/{id}/edit",
135
+ "admin_content_block": "/admin/content_blocks/{id}",
136
+ "new_user_session": "/users/sign_in",
137
+ "user_session": "/users/sign_in",
138
+ "destroy_user_session": "/users/sign_out",
139
+ "user_password": "/users/password",
140
+ "new_user_password": "/users/password/new",
141
+ "edit_user_password": "/users/password/edit",
142
+ "cancel_user_registration": "/users/cancel",
143
+ "user_registration": "/users",
144
+ "new_user_registration": "/users/sign_up",
145
+ "edit_user_registration": "/users/edit",
146
+ "user_confirmation": "/users/confirmation",
147
+ "new_user_confirmation": "/users/confirmation/new",
148
+ "validate_token": "/users/validate_token"
149
+ },
150
+ "data": {
151
+ }
152
+ }
153
+ Beginning step Vistor navigated to a path on mobile clicks on Menu (at ./spec/features/visitor_navigates_with_menu_spec.rb:54)
154
+ Started GET "/homepage" for 127.0.0.1 at 2015-01-30 18:15:57 -0800
155
+ Processing by PagesController#show as JSON
156
+ Parameters: {"url_slug"=>"homepage"}
157
+ Page Load (0.5ms) SELECT "pages".* FROM "pages" WHERE "pages"."url_slug" = 'homepage' LIMIT 1
158
+ PageContent Load (0.5ms) SELECT "page_contents".* FROM "page_contents" WHERE "page_contents"."page_id" = $1 [["page_id", 1]]
159
+ Completed 200 OK in 3ms (Views: 1.1ms | ActiveRecord: 1.0ms)
160
+ Response: {
161
+ "links": {
162
+ "self": "/pages/homepage",
163
+ "admin": "/admin/pages/homepage"
164
+ },
165
+ "data": {
166
+ "title": "This site's homepage",
167
+ "keywords": "Info, about, this, site.",
168
+ "description": "This site was built with LRD's CMS framework.",
169
+ "layout": "homepage",
170
+ "contents": {
171
+ }
172
+ }
173
+ }
174
+ Finished step Vistor navigated to a path on mobile clicks on Menu (at ./spec/features/visitor_navigates_with_menu_spec.rb:54)