Commit 5405b01

mo <mo@mokhan.ca>
2017-11-07 21:26:01
dump each attribute that is parsed from the response assertion.
1 parent 46a512a
Changed files (2)
airport
app
models
views
dashboard
airport/app/models/user.rb
@@ -1,8 +1,9 @@
 class User
-  attr_reader :id, :email
+  attr_reader :id, :email, :attributes
 
   def initialize(attributes)
     @id = attributes[:id]
     @email = attributes[:email]
+    @attributes = attributes
   end
 end
airport/app/views/dashboard/show.html.erb
@@ -1,7 +1,12 @@
 <div class="container">
   <div class="row">
     <div class="col">
-      <h1>Welcome <%= current_user.id %>:<%= current_user.email %></h1>
+      <h1>Welcome <%= current_user.email %></h1>
+      <ul>
+        <% current_user.attributes.each do |attribute| %>
+          <li> <%= attribute %> </li>
+        <% end %>
+      </ul>
     </div>
   </div>
 </div>