Advertisement
cosjef

Section 8.2.2 problem

Feb 24th, 2013
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.96 KB | None | 0 0
  1. Failures:
  2.  
  3. 1) Authentication signin with valid information
  4. Failure/Error: before { visit signin_path }
  5. ActionView::Template::Error:
  6. undefined local variable or method `current_user' for #<#<Class:0x007f85435a4608>:0x007f8543051cf0>
  7. # ./app/helpers/sessions_helper.rb:11:in `signed_in?'
  8. # ./app/views/layouts/_header.html.erb:9:in `_app_views_layouts__header_html_erb__4307046332760216055_70105167090680'
  9. # ./app/views/layouts/application.html.erb:12:in `_app_views_layouts_application_html_erb__4341898258881027636_70105157139100'
  10. # ./spec/requests/authentication_pages_spec.rb:14:in `block (3 levels) in <top (required)>'
  11.  
  12. 2) Authentication signin with valid information
  13. Failure/Error: before { visit signin_path }
  14. ActionView::Template::Error:
  15. undefined local variable or method `current_user' for #<#<Class:0x007f85435a4608>:0x007f8541dd3858>
  16. # ./app/helpers/sessions_helper.rb:11:in `signed_in?'
  17. # ./app/views/layouts/_header.html.erb:9:in `_app_views_layouts__header_html_erb__4307046332760216055_70105167090680'
  18. # ./app/views/layouts/application.html.erb:12:in `_app_views_layouts_application_html_erb__4341898258881027636_70105157139100'
  19. # ./spec/requests/authentication_pages_spec.rb:14:in `block (3 levels) in <top (required)>'
  20.  
  21. 3) Authentication signin with valid information
  22. Failure/Error: before { visit signin_path }
  23. ActionView::Template::Error:
  24. undefined local variable or method `current_user' for #<#<Class:0x007f85435a4608>:0x007f854329c668>
  25. # ./app/helpers/sessions_helper.rb:11:in `signed_in?'
  26. # ./app/views/layouts/_header.html.erb:9:in `_app_views_layouts__header_html_erb__4307046332760216055_70105167090680'
  27. # ./app/views/layouts/application.html.erb:12:in `_app_views_layouts_application_html_erb__4341898258881027636_70105157139100'
  28. # ./spec/requests/authentication_pages_spec.rb:14:in `block (3 levels) in <top (required)>'
  29.  
  30. 4) Authentication signin with valid information
  31. Failure/Error: before { visit signin_path }
  32. ActionView::Template::Error:
  33. undefined local variable or method `current_user' for #<#<Class:0x007f85435a4608>:0x007f854225e5d0>
  34. # ./app/helpers/sessions_helper.rb:11:in `signed_in?'
  35. # ./app/views/layouts/_header.html.erb:9:in `_app_views_layouts__header_html_erb__4307046332760216055_70105167090680'
  36. # ./app/views/layouts/application.html.erb:12:in `_app_views_layouts_application_html_erb__4341898258881027636_70105157139100'
  37. # ./spec/requests/authentication_pages_spec.rb:14:in `block (3 levels) in <top (required)>'
  38.  
  39. 5) Authentication signin with invalid information
  40. Failure/Error: before { visit signin_path }
  41. ActionView::Template::Error:
  42. undefined local variable or method `current_user' for #<#<Class:0x007f85435a4608>:0x007f8541f27380>
  43. # ./app/helpers/sessions_helper.rb:11:in `signed_in?'
  44. # ./app/views/layouts/_header.html.erb:9:in `_app_views_layouts__header_html_erb__4307046332760216055_70105167090680'
  45. # ./app/views/layouts/application.html.erb:12:in `_app_views_layouts_application_html_erb__4341898258881027636_70105157139100'
  46. # ./spec/requests/authentication_pages_spec.rb:14:in `block (3 levels) in <top (required)>'
  47.  
  48. 6) Authentication signin with invalid information
  49. Failure/Error: before { visit signin_path }
  50. ActionView::Template::Error:
  51. undefined local variable or method `current_user' for #<#<Class:0x007f85435a4608>:0x007f8543216b58>
  52. # ./app/helpers/sessions_helper.rb:11:in `signed_in?'
  53. # ./app/views/layouts/_header.html.erb:9:in `_app_views_layouts__header_html_erb__4307046332760216055_70105167090680'
  54. # ./app/views/layouts/application.html.erb:12:in `_app_views_layouts_application_html_erb__4341898258881027636_70105157139100'
  55. # ./spec/requests/authentication_pages_spec.rb:14:in `block (3 levels) in <top (required)>'
  56.  
  57. 7) Authentication signin with invalid information after visiting another page
  58. Failure/Error: before { visit signin_path }
  59. ActionView::Template::Error:
  60. undefined local variable or method `current_user' for #<#<Class:0x007f85435a4608>:0x007f854200de98>
  61. # ./app/helpers/sessions_helper.rb:11:in `signed_in?'
  62. # ./app/views/layouts/_header.html.erb:9:in `_app_views_layouts__header_html_erb__4307046332760216055_70105167090680'
  63. # ./app/views/layouts/application.html.erb:12:in `_app_views_layouts_application_html_erb__4341898258881027636_70105157139100'
  64. # ./spec/requests/authentication_pages_spec.rb:14:in `block (3 levels) in <top (required)>'
  65.  
  66. 8) Authentication signin page
  67. Failure/Error: before { visit signin_path }
  68. ActionView::Template::Error:
  69. undefined local variable or method `current_user' for #<#<Class:0x007f85435a4608>:0x007f8541b57070>
  70. # ./app/helpers/sessions_helper.rb:11:in `signed_in?'
  71. # ./app/views/layouts/_header.html.erb:9:in `_app_views_layouts__header_html_erb__4307046332760216055_70105167090680'
  72. # ./app/views/layouts/application.html.erb:12:in `_app_views_layouts_application_html_erb__4341898258881027636_70105157139100'
  73. # ./spec/requests/authentication_pages_spec.rb:7:in `block (3 levels) in <top (required)>'
  74.  
  75. 9) Authentication signin page
  76. Failure/Error: before { visit signin_path }
  77. ActionView::Template::Error:
  78. undefined local variable or method `current_user' for #<#<Class:0x007f85435a4608>:0x007f85432e0ed0>
  79. # ./app/helpers/sessions_helper.rb:11:in `signed_in?'
  80. # ./app/views/layouts/_header.html.erb:9:in `_app_views_layouts__header_html_erb__4307046332760216055_70105167090680'
  81. # ./app/views/layouts/application.html.erb:12:in `_app_views_layouts_application_html_erb__4341898258881027636_70105157139100'
  82. # ./spec/requests/authentication_pages_spec.rb:7:in `block (3 levels) in <top (required)>'
  83.  
  84. 10) Static pages Home page
  85. Failure/Error: before { visit root_path }
  86. ActionView::Template::Error:
  87. undefined local variable or method `current_user' for #<#<Class:0x007f854190b4b0>:0x007f85419321a0>
  88. # ./app/helpers/sessions_helper.rb:11:in `signed_in?'
  89. # ./app/views/layouts/_header.html.erb:9:in `_app_views_layouts__header_html_erb__4307046332760216055_70105167090680'
  90. # ./app/views/layouts/application.html.erb:12:in `_app_views_layouts_application_html_erb__4341898258881027636_70105157139100'
  91. # ./spec/requests/static_pages_spec.rb:8:in `block (3 levels) in <top (required)>'
  92.  
  93. 11) Static pages Home page
  94. Failure/Error: before { visit root_path }
  95. ActionView::Template::Error:
  96. undefined local variable or method `current_user' for #<#<Class:0x007f854190b4b0>:0x007f8543307af8>
  97. # ./app/helpers/sessions_helper.rb:11:in `signed_in?'
  98. # ./app/views/layouts/_header.html.erb:9:in `_app_views_layouts__header_html_erb__4307046332760216055_70105167090680'
  99. # ./app/views/layouts/application.html.erb:12:in `_app_views_layouts_application_html_erb__4341898258881027636_70105157139100'
  100. # ./spec/requests/static_pages_spec.rb:8:in `block (3 levels) in <top (required)>'
  101.  
  102. 12) Static pages Home page
  103. Failure/Error: before { visit root_path }
  104. ActionView::Template::Error:
  105. undefined local variable or method `current_user' for #<#<Class:0x007f854190b4b0>:0x007f85424049c0>
  106. # ./app/helpers/sessions_helper.rb:11:in `signed_in?'
  107. # ./app/views/layouts/_header.html.erb:9:in `_app_views_layouts__header_html_erb__4307046332760216055_70105167090680'
  108. # ./app/views/layouts/application.html.erb:12:in `_app_views_layouts_application_html_erb__4341898258881027636_70105157139100'
  109. # ./spec/requests/static_pages_spec.rb:8:in `block (3 levels) in <top (required)>'
  110.  
  111. 13) Static pages Help page
  112. Failure/Error: before { visit help_path}
  113. ActionView::Template::Error:
  114. undefined local variable or method `current_user' for #<#<Class:0x007f854190b4b0>:0x007f85435ce700>
  115. # ./app/helpers/sessions_helper.rb:11:in `signed_in?'
  116. # ./app/views/layouts/_header.html.erb:9:in `_app_views_layouts__header_html_erb__4307046332760216055_70105167090680'
  117. # ./app/views/layouts/application.html.erb:12:in `_app_views_layouts_application_html_erb__4341898258881027636_70105157139100'
  118. # ./spec/requests/static_pages_spec.rb:18:in `block (3 levels) in <top (required)>'
  119.  
  120. 14) Static pages Help page
  121. Failure/Error: before { visit help_path}
  122. ActionView::Template::Error:
  123. undefined local variable or method `current_user' for #<#<Class:0x007f854190b4b0>:0x007f8543120a50>
  124. # ./app/helpers/sessions_helper.rb:11:in `signed_in?'
  125. # ./app/views/layouts/_header.html.erb:9:in `_app_views_layouts__header_html_erb__4307046332760216055_70105167090680'
  126. # ./app/views/layouts/application.html.erb:12:in `_app_views_layouts_application_html_erb__4341898258881027636_70105157139100'
  127. # ./spec/requests/static_pages_spec.rb:18:in `block (3 levels) in <top (required)>'
  128.  
  129. 15) Static pages About page
  130. Failure/Error: before { visit about_path }
  131. ActionView::Template::Error:
  132. undefined local variable or method `current_user' for #<#<Class:0x007f854190b4b0>:0x007f8542324f28>
  133. # ./app/helpers/sessions_helper.rb:11:in `signed_in?'
  134. # ./app/views/layouts/_header.html.erb:9:in `_app_views_layouts__header_html_erb__4307046332760216055_70105167090680'
  135. # ./app/views/layouts/application.html.erb:12:in `_app_views_layouts_application_html_erb__4341898258881027636_70105157139100'
  136. # ./spec/requests/static_pages_spec.rb:26:in `block (3 levels) in <top (required)>'
  137.  
  138. 16) Static pages About page
  139. Failure/Error: before { visit about_path }
  140. ActionView::Template::Error:
  141. undefined local variable or method `current_user' for #<#<Class:0x007f854190b4b0>:0x007f8541f2dac8>
  142. # ./app/helpers/sessions_helper.rb:11:in `signed_in?'
  143. # ./app/views/layouts/_header.html.erb:9:in `_app_views_layouts__header_html_erb__4307046332760216055_70105167090680'
  144. # ./app/views/layouts/application.html.erb:12:in `_app_views_layouts_application_html_erb__4341898258881027636_70105157139100'
  145. # ./spec/requests/static_pages_spec.rb:26:in `block (3 levels) in <top (required)>'
  146.  
  147. 17) Static pages Contact page
  148. Failure/Error: before { visit contact_path }
  149. ActionView::Template::Error:
  150. undefined local variable or method `current_user' for #<#<Class:0x007f854190b4b0>:0x007f85432205e0>
  151. # ./app/helpers/sessions_helper.rb:11:in `signed_in?'
  152. # ./app/views/layouts/_header.html.erb:9:in `_app_views_layouts__header_html_erb__4307046332760216055_70105167090680'
  153. # ./app/views/layouts/application.html.erb:12:in `_app_views_layouts_application_html_erb__4341898258881027636_70105157139100'
  154. # ./spec/requests/static_pages_spec.rb:34:in `block (3 levels) in <top (required)>'
  155.  
  156. 18) Static pages Contact page
  157. Failure/Error: before { visit contact_path }
  158. ActionView::Template::Error:
  159. undefined local variable or method `current_user' for #<#<Class:0x007f854190b4b0>:0x007f8541828610>
  160. # ./app/helpers/sessions_helper.rb:11:in `signed_in?'
  161. # ./app/views/layouts/_header.html.erb:9:in `_app_views_layouts__header_html_erb__4307046332760216055_70105167090680'
  162. # ./app/views/layouts/application.html.erb:12:in `_app_views_layouts_application_html_erb__4341898258881027636_70105157139100'
  163. # ./spec/requests/static_pages_spec.rb:34:in `block (3 levels) in <top (required)>'
  164.  
  165. 19) UserPages profile page
  166. Failure/Error: before { visit user_path(user) }
  167. ActionView::Template::Error:
  168. undefined local variable or method `current_user' for #<#<Class:0x007f8543302dc8>:0x007f8543305870>
  169. # ./app/helpers/sessions_helper.rb:11:in `signed_in?'
  170. # ./app/views/layouts/_header.html.erb:9:in `_app_views_layouts__header_html_erb__4307046332760216055_70105167090680'
  171. # ./app/views/layouts/application.html.erb:12:in `_app_views_layouts_application_html_erb__4341898258881027636_70105157139100'
  172. # ./spec/requests/user_pages_spec.rb:41:in `block (3 levels) in <top (required)>'
  173.  
  174. 20) UserPages profile page
  175. Failure/Error: before { visit user_path(user) }
  176. ActionView::Template::Error:
  177. undefined local variable or method `current_user' for #<#<Class:0x007f8543302dc8>:0x007f85427d3e70>
  178. # ./app/helpers/sessions_helper.rb:11:in `signed_in?'
  179. # ./app/views/layouts/_header.html.erb:9:in `_app_views_layouts__header_html_erb__4307046332760216055_70105167090680'
  180. # ./app/views/layouts/application.html.erb:12:in `_app_views_layouts_application_html_erb__4341898258881027636_70105157139100'
  181. # ./spec/requests/user_pages_spec.rb:41:in `block (3 levels) in <top (required)>'
  182.  
  183. 21) UserPages signup page with valid information should create a user
  184. Failure/Error: before { visit signup_path }
  185. ActionView::Template::Error:
  186. undefined local variable or method `current_user' for #<#<Class:0x007f8543302dc8>:0x007f854194c730>
  187. # ./app/helpers/sessions_helper.rb:11:in `signed_in?'
  188. # ./app/views/layouts/_header.html.erb:9:in `_app_views_layouts__header_html_erb__4307046332760216055_70105167090680'
  189. # ./app/views/layouts/application.html.erb:12:in `_app_views_layouts_application_html_erb__4341898258881027636_70105157139100'
  190. # ./spec/requests/user_pages_spec.rb:8:in `block (3 levels) in <top (required)>'
  191.  
  192. 22) UserPages signup page with invalid information should not create a user
  193. Failure/Error: before { visit signup_path }
  194. ActionView::Template::Error:
  195. undefined local variable or method `current_user' for #<#<Class:0x007f8543302dc8>:0x007f8543184b68>
  196. # ./app/helpers/sessions_helper.rb:11:in `signed_in?'
  197. # ./app/views/layouts/_header.html.erb:9:in `_app_views_layouts__header_html_erb__4307046332760216055_70105167090680'
  198. # ./app/views/layouts/application.html.erb:12:in `_app_views_layouts_application_html_erb__4341898258881027636_70105157139100'
  199. # ./spec/requests/user_pages_spec.rb:8:in `block (3 levels) in <top (required)>'
  200.  
  201. Finished in 0.77511 seconds
  202. 43 examples, 22 failures
  203.  
  204. Failed examples:
  205.  
  206. rspec ./spec/requests/authentication_pages_spec.rb:36 # Authentication signin with valid information
  207. rspec ./spec/requests/authentication_pages_spec.rb:37 # Authentication signin with valid information
  208. rspec ./spec/requests/authentication_pages_spec.rb:38 # Authentication signin with valid information
  209. rspec ./spec/requests/authentication_pages_spec.rb:39 # Authentication signin with valid information
  210. rspec ./spec/requests/authentication_pages_spec.rb:19 # Authentication signin with invalid information
  211. rspec ./spec/requests/authentication_pages_spec.rb:18 # Authentication signin with invalid information
  212. rspec ./spec/requests/authentication_pages_spec.rb:23 # Authentication signin with invalid information after visiting another page
  213. rspec ./spec/requests/authentication_pages_spec.rb:9 # Authentication signin page
  214. rspec ./spec/requests/authentication_pages_spec.rb:8 # Authentication signin page
  215. rspec ./spec/requests/static_pages_spec.rb:13 # Static pages Home page
  216. rspec ./spec/requests/static_pages_spec.rb:11 # Static pages Home page
  217. rspec ./spec/requests/static_pages_spec.rb:12 # Static pages Home page
  218. rspec ./spec/requests/static_pages_spec.rb:21 # Static pages Help page
  219. rspec ./spec/requests/static_pages_spec.rb:20 # Static pages Help page
  220. rspec ./spec/requests/static_pages_spec.rb:29 # Static pages About page
  221. rspec ./spec/requests/static_pages_spec.rb:28 # Static pages About page
  222. rspec ./spec/requests/static_pages_spec.rb:37 # Static pages Contact page
  223. rspec ./spec/requests/static_pages_spec.rb:36 # Static pages Contact page
  224. rspec ./spec/requests/user_pages_spec.rb:44 # UserPages profile page
  225. rspec ./spec/requests/user_pages_spec.rb:43 # UserPages profile page
  226. rspec ./spec/requests/user_pages_spec.rb:26 # UserPages signup page with valid information should create a user
  227. rspec ./spec/requests/user_pages_spec.rb:13 # UserPages signup page with invalid information should not create a user
  228.  
  229. Randomized with seed 4777
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement