Note that there are some explanatory texts on larger screens.

plurals
  1. PORuby on Rails Tutorial Chapter 10 help- Failing Test
    primarykey
    data
    text
    <p>I'm having some trouble with the Ruby on Rails tutorial by Michael Hartl. I'm at the end of chapter 10 and getting a large amount of failing tests. I have compared my code with the github repo Michael put together and they line up. Here is the failed test report: </p> <pre><code> 1) Authentication signin with valid information Failure/Error: click_button "Sign in" ActionView::Template::Error: Missing partial shared/stats with {:locale=&gt;[:en], :formats=&gt;[:html], :handlers=&gt;[:erb, :builder, :coffee]}. Searched in: * "/Users/bobbysudekum/Documents/Projects/rails/Secondattempt/sample_app_three/app/views" # ./app/views/users/show.html.erb:11:in `_app_views_users_show_html_erb___2309319721249673303_70162631795520' # (eval):2:in `click_button' # ./spec/requests/authentication_pages_spec.rb:34:in `block (4 levels) in &lt;top (required)&gt;' 2) Authentication signin with valid information Failure/Error: click_button "Sign in" ActionView::Template::Error: Missing partial shared/stats with {:locale=&gt;[:en], :formats=&gt;[:html], :handlers=&gt;[:erb, :builder, :coffee]}. Searched in: * "/Users/bobbysudekum/Documents/Projects/rails/Secondattempt/sample_app_three/app/views" # ./app/views/users/show.html.erb:11:in `_app_views_users_show_html_erb___2309319721249673303_70162631795520' # (eval):2:in `click_button' # ./spec/requests/authentication_pages_spec.rb:34:in `block (4 levels) in &lt;top (required)&gt;' 3) Authentication signin with valid information Failure/Error: click_button "Sign in" ActionView::Template::Error: Missing partial shared/stats with {:locale=&gt;[:en], :formats=&gt;[:html], :handlers=&gt;[:erb, :builder, :coffee]}. Searched in: * "/Users/bobbysudekum/Documents/Projects/rails/Secondattempt/sample_app_three/app/views" # ./app/views/users/show.html.erb:11:in `_app_views_users_show_html_erb___2309319721249673303_70162631795520' # (eval):2:in `click_button' # ./spec/requests/authentication_pages_spec.rb:34:in `block (4 levels) in &lt;top (required)&gt;' # REMOVED 43 more identical errors </code></pre> <h3>View ported from github</h3> <pre><code>&lt;% provide(:title, @user.name) %&gt; &lt;div class="row"&gt; &lt;aside class="span4"&gt; &lt;section&gt; &lt;h1&gt; &lt;%= gravatar_for @user %&gt; &lt;%= @user.name %&gt; &lt;/h1&gt; &lt;/section&gt; &lt;section&gt; &lt;%= render 'shared/stats' %&gt; &lt;/section&gt; &lt;/aside&gt; &lt;div class="span8"&gt; &lt;%= render 'follow_form' if signed_in? %&gt; &lt;% if @user.microposts.any? %&gt; &lt;h3&gt;Microposts (&lt;%= @user.microposts.count %&gt;)&lt;/h3&gt; &lt;ol class="microposts"&gt; &lt;%= render @microposts %&gt; &lt;/ol&gt; &lt;%= will_paginate @microposts %&gt; &lt;% end %&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; </code></pre> <p>Sorry about not including example code- went over the character limit. Please consult the rest of the code on github- <a href="https://github.com/rsudekum/sample_app_three" rel="nofollow">https://github.com/rsudekum/sample_app_three</a></p> <p>Being brand new to rails/ruby, I do not really know what to look for in a failing test. If someone could point me in the right direction that would be much obliged. </p> <p>Thanks in advanced. </p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload