start writing tests

This commit is contained in:
Josh
2018-05-09 16:31:52 -04:00
parent e6d01ef1b9
commit 5347d902c0
24 changed files with 370 additions and 192 deletions

View File

@ -19,4 +19,4 @@
<% end %>
<br>
<%= link_to 'Logout', user_logout_path %>
<%= link_to 'Logout', logout_path %>

View File

@ -24,6 +24,21 @@
<% end %>
<% end %>
<center><p>or...<br><br></p></center>
<%= form_for(:session, url: login_path) do |f| %>
<div class="input-field col s12">
<%= f.label :email, "Email Address" %>
<%= f.text_field :email %>
</div>
<div class="input-field col s12">
<%= f.label :password %>
<%= f.password_field :password %>
</div>
<br>
<%= f.submit "Login", class: "btn white-text light-green" %>
<%= link_to "Don't have an account? Sign up!", signup_path %>
<% end %>
</div>
<% end %>
</div>

View File

@ -6,12 +6,12 @@
<% else %>
<%= link_to(t('return_to_room'), room_path(current_user)) %>
<% end %>
<div><%= link_to t('logout'), user_logout_url %></div>
<div><%= link_to t('logout'), logout_url %></div>
</div>
<% else %>
<div class="text-center">
<span><%= t('login_description') %></span>
<div><%= link_to t('login'), user_login_url %></div>
<div><%= link_to t('login'), login_url %></div>
</div>
<% end %>
</span>

View File