Note that there are some explanatory texts on larger screens.

plurals
  1. POWhy am I seeing output during 'rake test' other than '.' 'F' or 'E' (ruby 1.9.2p290, Rails 3.0.9)?
    text
    copied!<p>When I used to run 'rake test' I would see either '.' or 'F' or 'E' for each test. When all was well, the output was a line of '.'</p> <p>Now, even though all my test are passing, I am seeing program output in the midst of the line of '.'</p> <p>I am not sure the best way to post the output, but here is an initial offering:</p> <pre><code>perrys-MacBook-Pro:iway perry_mac$ rake test:functionals --trace ** Invoke test:functionals (first_time) ** Invoke test:prepare (first_time) ** Invoke db:test:prepare (first_time) ** Invoke db:abort_if_pending_migrations (first_time) ** Invoke environment (first_time) ** Execute environment ** Execute db:abort_if_pending_migrations ** Execute db:test:prepare ** Invoke db:test:load (first_time) ** Invoke db:test:purge (first_time) ** Invoke environment ** Execute db:test:purge ** Execute db:test:load ** Invoke db:schema:load (first_time) ** Invoke environment ** Execute db:schema:load ** Execute test:prepare ** Execute test:functionals Loaded suite /Users/perry_mac/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2/lib/rake/rake_test_loader Started .........................."Welcome joe : " ."Welcome joe : " ."Welcome joe : " ."Welcome joe : " .................."Welcome bob : " ........... Finished in 0.998462 seconds. 58 tests, 81 assertions, 0 failures, 0 errors, 0 skips Test run options: --seed 15796 </code></pre> <p>The line of code generating the output is: app/views/layouts/application.html.erb</p> <pre><code> &lt;div id="nav"&gt; &lt;% if current_user %&gt; &lt;% str= "Welcome " + current_user.username + " : "%&gt; &lt;%= p str %&gt; &lt;%= link_to "Edit Profile : ", edit_user_path(current_user.id)%&gt; &lt;%= link_to "Logout", :logout%&gt; &lt;% else %&gt; &lt;%= link_to "Register", new_user_path%&gt; | &lt;%= link_to "Login", :login %&gt; &lt;% end %&gt; &lt;/div&gt; </code></pre> <p>The "Welcome joe : " and "Welcome bob : " msgs are expected program output seen after a user successfully logs in. bob and joe are usernames created in a fixtures file. I can't figure out why the msgs are now seen during 'rake test' I see the same behavior when --trace is not used as well. Please comment on A) why I see some program output and not the rest and B) Why am I seeing any at all?</p>
 

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