
Results for <%= @test_run.skill_test.title %>

Total score: <%= number_to_percentage(@test_run.score, precision:2)%>
Time taken: <%= "#{'%02i' % @time_taken[:minutes]}:#{'%02i' % @time_taken[:seconds]}" %>

<% @test_run.submitted_answers.each do |a| %>
    Question <%= a.question_number %>
      Score: <%= a.score %>/<%= a.max_score %>
    <% if a.wrong_answers? %>
      Wrong answers: <%= a.wrong_answers %>
    <% end %>
<% end %>


Results for <%= @test_run.skill_test.title %>

Submitted by
<%= @test_run.user.name %>
<%= @test_run.user.email %>
<%= "http://github.com/#{@test_run.user.authentications.where(provider: :github).first.username}" %>

Total score: <%= number_to_percentage(@test_run.score, precision:2)%>
Time taken: <%= "#{'%02i' % @time_taken[:minutes]}:#{'%02i' % @time_taken[:seconds]}" %>

<% @test_run.submitted_answers.each do |a| %>
    Question <%= a.question_number %>
      Score: <%= a.score %>/<%= a.max_score %>
    <% if a.wrong_answers? %>
      Wrong answers: <%= a.wrong_answers %>
    <% end %>
<% end %>

Update email template with user info
Update email template with user info